|
||||||||||
| 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 |
|
| Method Summary | |
|---|---|
AddScmResult |
add(ScmRepository repository,
ScmFileSet fileSet)
|
AddScmResult |
add(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String message)
|
BranchScmResult |
branch(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String branchName)
|
BranchScmResult |
branch(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String branchName,
java.lang.String message)
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date startDate,
java.util.Date endDate,
int numDays,
ScmBranch branch)
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date startDate,
java.util.Date endDate,
int numDays,
ScmBranch branch,
java.lang.String datePattern)
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion)
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startRevision,
ScmVersion endRevision,
java.lang.String datePattern)
|
CheckInScmResult |
checkIn(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion revision,
java.lang.String message)
|
CheckInScmResult |
checkIn(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String message)
|
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet)
|
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive)
|
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
|
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
boolean recursive)
|
DiffScmResult |
diff(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion)
|
EditScmResult |
edit(ScmRepository repository,
ScmFileSet fileSet)
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet)
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
java.lang.String outputDirectory)
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String outputDirectory)
|
java.util.List |
getMessages()
Get the messages to return in validateScmRepository |
ScmProvider |
getProviderByRepository(ScmRepository repository)
|
ScmProvider |
getProviderByType(java.lang.String providerType)
|
ScmProvider |
getProviderByUrl(java.lang.String scmUrl)
|
ScmProvider |
getScmProvider()
|
ScmRepository |
getScmRepository()
|
ListScmResult |
list(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive,
ScmVersion version)
|
ScmRepository |
makeProviderScmRepository(java.lang.String providerType,
java.io.File path)
|
ScmRepository |
makeScmRepository(java.lang.String scmUrl)
|
RemoveScmResult |
remove(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String message)
|
void |
setMessages(java.util.List messages)
Set the messages to return in validateScmRepository |
void |
setScmProvider(ScmProvider scmProvider)
|
void |
setScmProvider(java.lang.String providerType,
ScmProvider provider)
|
void |
setScmProviderImplementation(java.lang.String providerType,
java.lang.String providerImplementation)
|
void |
setScmRepository(ScmRepository scmRepository)
|
StatusScmResult |
status(ScmRepository repository,
ScmFileSet fileSet)
|
TagScmResult |
tag(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tagName)
|
TagScmResult |
tag(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tagName,
java.lang.String message)
|
UnEditScmResult |
unedit(ScmRepository repository,
ScmFileSet fileSet)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
boolean runChangelog)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date lastUpdate)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date lastUpdate,
java.lang.String datePattern)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
boolean runChangelog)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
java.util.Date lastUpdate)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
java.util.Date lastUpdate,
java.lang.String datePattern)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
java.lang.String datePattern)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String datePattern)
|
java.util.List |
validateScmRepository(java.lang.String scmUrl)
Returns the same list as getMessages() |
| 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(java.lang.String providerType,
ScmProvider provider)
setScmProvider in interface ScmManager
public void setScmProviderImplementation(java.lang.String providerType,
java.lang.String providerImplementation)
setScmProviderImplementation in interface ScmManagerpublic void setScmRepository(ScmRepository scmRepository)
public ScmRepository getScmRepository()
public void setMessages(java.util.List messages)
messages - List of String objectspublic java.util.List getMessages()
List of String objects
public ScmRepository makeScmRepository(java.lang.String scmUrl)
throws ScmRepositoryException,
NoSuchScmProviderException
makeScmRepository in interface ScmManagerScmRepositoryException
NoSuchScmProviderException
public ScmRepository makeProviderScmRepository(java.lang.String providerType,
java.io.File path)
throws ScmRepositoryException,
UnknownRepositoryStructure,
NoSuchScmProviderException
makeProviderScmRepository in interface ScmManagerScmRepositoryException
UnknownRepositoryStructure
NoSuchScmProviderExceptionpublic java.util.List validateScmRepository(java.lang.String scmUrl)
validateScmRepository in interface ScmManagerscmUrl - ignored
List of String objects, the same list returned by getMessages()
public ScmProvider getProviderByUrl(java.lang.String scmUrl)
throws ScmRepositoryException,
NoSuchScmProviderException
getProviderByUrl in interface ScmManagerScmRepositoryException
NoSuchScmProviderException
public ScmProvider getProviderByType(java.lang.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,
java.lang.String message)
throws ScmException
add in interface ScmManagerScmException
public BranchScmResult branch(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String branchName)
throws ScmException
branch in interface ScmManagerScmException
public BranchScmResult branch(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String branchName,
java.lang.String message)
throws ScmException
branch in interface ScmManagerScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date startDate,
java.util.Date endDate,
int numDays,
ScmBranch branch)
throws ScmException
changeLog in interface ScmManagerScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date startDate,
java.util.Date endDate,
int numDays,
ScmBranch branch,
java.lang.String datePattern)
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,
java.lang.String datePattern)
throws ScmException
changeLog in interface ScmManagerScmException
public CheckInScmResult checkIn(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String message)
throws ScmException
checkIn in interface ScmManagerScmException
public CheckInScmResult checkIn(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion revision,
java.lang.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,
java.lang.String outputDirectory)
throws ScmException
export in interface ScmManagerScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
java.lang.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,
java.lang.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,
java.lang.String tagName)
throws ScmException
tag in interface ScmManagerScmException
public TagScmResult tag(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tagName,
java.lang.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,
java.lang.String datePattern)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
java.lang.String datePattern)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date lastUpdate)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
java.util.Date lastUpdate)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date lastUpdate,
java.lang.String datePattern)
throws ScmException
update in interface ScmManagerScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
java.util.Date lastUpdate,
java.lang.String datePattern)
throws ScmException
update in interface ScmManagerScmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||