|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.scm.manager.ScmManagerStub
public class ScmManagerStub
Stub implementation of ScmManager for unit testing purposes. It allows setting the expected results that the different methods will return. More information about Stubs on Martin Fowler's TestDouble
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.scm.manager.ScmManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ScmManagerStub()
Creates a new stub with stub repository and provider, and empty list of messages |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScmManagerStub()
| Method Detail |
|---|
public void setScmProvider(ScmProvider scmProvider)
public ScmProvider getScmProvider()
public void setScmProvider(String providerType,
ScmProvider provider)
setScmProvider in interface ScmManager
public void setScmProviderImplementation(String providerType,
String providerImplementation)
setScmProviderImplementation in interface ScmManagerpublic void setScmRepository(ScmRepository scmRepository)
public ScmRepository getScmRepository()
public void setMessages(List<String> messages)
messages - List of String objectspublic List<String> getMessages()
List of String objects
public ScmRepository makeScmRepository(String scmUrl)
throws ScmRepositoryException,
NoSuchScmProviderException
makeScmRepository in interface ScmManagerScmRepositoryException
NoSuchScmProviderException
public ScmRepository makeProviderScmRepository(String providerType,
File path)
throws ScmRepositoryException,
UnknownRepositoryStructure,
NoSuchScmProviderException
makeProviderScmRepository in interface ScmManagerScmRepositoryException
UnknownRepositoryStructure
NoSuchScmProviderExceptionpublic List<String> validateScmRepository(String scmUrl)
validateScmRepository in interface ScmManagerscmUrl - ignored
List of String objects, the same list returned by getMessages()
public ScmProvider getProviderByUrl(String scmUrl)
throws ScmRepositoryException,
NoSuchScmProviderException
getProviderByUrl in interface ScmManagerScmRepositoryException
NoSuchScmProviderException
public ScmProvider getProviderByType(String providerType)
throws NoSuchScmProviderException
getProviderByType in interface ScmManagerNoSuchScmProviderException
public ScmProvider getProviderByRepository(ScmRepository repository)
throws NoSuchScmProviderException
getProviderByRepository in interface ScmManagerNoSuchScmProviderException
public AddScmResult add(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
add in interface ScmManagerScmException
public AddScmResult add(ScmRepository repository,
ScmFileSet fileSet,
String message)
throws ScmException
add in interface ScmManagerScmException
public BranchScmResult branch(ScmRepository repository,
ScmFileSet fileSet,
String branchName)
throws ScmException
branch in interface ScmManagerScmException
public BranchScmResult branch(ScmRepository repository,
ScmFileSet fileSet,
String branchName,
String message)
throws ScmException
branch in interface ScmManagerScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
ScmBranch branch)
throws ScmException
changeLog in interface ScmManagerScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
ScmBranch branch,
String datePattern)
throws ScmException
changeLog in interface ScmManagerScmException
public ChangeLogScmResult changeLog(ChangeLogScmRequest request)
throws ScmException
changeLog in interface ScmManagerScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion)
throws ScmException
changeLog in interface ScmManagerScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startRevision,
ScmVersion endRevision,
String datePattern)
throws ScmException
changeLog in interface ScmManagerScmException
public CheckInScmResult checkIn(ScmRepository repository,
ScmFileSet fileSet,
String message)
throws ScmException
checkIn in interface ScmManagerScmException
public CheckInScmResult checkIn(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion revision,
String message)
throws ScmException
checkIn in interface ScmManagerScmException
public CheckOutScmResult checkOut(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
checkOut in interface ScmManagerScmException
public CheckOutScmResult checkOut(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
throws ScmException
checkOut in interface ScmManagerScmException
public CheckOutScmResult checkOut(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive)
throws ScmException
checkOut in interface ScmManagerScmException
public CheckOutScmResult checkOut(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
boolean recursive)
throws ScmException
checkOut in interface ScmManagerScmException
public DiffScmResult diff(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion)
throws ScmException
diff in interface ScmManagerScmException
public EditScmResult edit(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
edit in interface ScmManagerScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
export in interface ScmManagerScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
throws ScmException
export in interface ScmManagerScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet,
String outputDirectory)
throws ScmException
export in interface ScmManagerScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
String outputDirectory)
throws ScmException
export in interface ScmManagerScmException
public ListScmResult list(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive,
ScmVersion version)
throws ScmException
list in interface ScmManagerScmException
public RemoveScmResult remove(ScmRepository repository,
ScmFileSet fileSet,
String message)
throws ScmException
remove in interface ScmManagerScmException
public StatusScmResult status(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
status in interface ScmManagerScmException
public TagScmResult tag(ScmRepository repository,
ScmFileSet fileSet,
String tagName)
throws ScmException
tag in interface ScmManagerScmException
public TagScmResult tag(ScmRepository repository,
ScmFileSet fileSet,
String tagName,
String message)
throws ScmException
tag in interface ScmManagerScmException
public UnEditScmResult unedit(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
unedit in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
boolean runChangelog)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
boolean runChangelog)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
String datePattern)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
String datePattern)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
Date lastUpdate)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
Date lastUpdate)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
Date lastUpdate,
String datePattern)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
Date lastUpdate,
String datePattern)
throws ScmException
update in interface ScmManagerScmException
public BlameScmResult blame(ScmRepository repository,
ScmFileSet fileSet,
String filename)
throws ScmException
blame in interface ScmManagerScmException
public BlameScmResult blame(BlameScmRequest blameScmRequest)
throws ScmException
blame in interface ScmManagerScmException
public MkdirScmResult mkdir(ScmRepository repository,
ScmFileSet fileSet,
String message,
boolean createInLocal)
throws ScmException
mkdir in interface ScmManagerScmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||