|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.scm.provider.ScmProviderStub
public class ScmProviderStub
Stub implementation of ScmProvider 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.provider.ScmProvider |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ScmProviderStub()
Create a new ScmProviderStub with bogus (not null) attributes |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScmProviderStub()
| Method Detail |
|---|
public String sanitizeTagName(String tag)
sanitizeTagName in interface ScmProviderpublic boolean validateTagName(String tag)
validateTagName in interface ScmProviderpublic String getScmType()
getScmType in interface ScmProviderpublic void setScmSpecificFilename(String scmSpecificFilename)
public void addListener(ScmLogger logger)
addListener in interface ScmProviderpublic boolean requiresEditMode()
requiresEditMode in interface ScmProviderpublic void setAddScmResult(AddScmResult addScmResult)
public AddScmResult getAddScmResult()
public void setBranchScmResult(BranchScmResult branchScmResult)
public BranchScmResult getBranchScmResult()
public void setCheckInScmResult(CheckInScmResult checkInScmResult)
public CheckInScmResult getCheckInScmResult()
public void setCheckOutScmResult(CheckOutScmResult checkOutScmResult)
public CheckOutScmResult getCheckOutScmResult()
public void setChangeLogScmResult(ChangeLogScmResult changeLogScmResult)
public ChangeLogScmResult getChangeLogScmResult()
public void setDiffScmResult(DiffScmResult diffScmResult)
public DiffScmResult getDiffScmResult()
public ExportScmResult getExportScmResult()
public void setExportScmResult(ExportScmResult exportScmResult)
public void setTagScmResult(TagScmResult tagScmResult)
public TagScmResult getTagScmResult()
public void setRemoveScmResult(RemoveScmResult removeScmResult)
public RemoveScmResult getRemoveScmResult()
public void setStatusScmResult(StatusScmResult statusScmResult)
public StatusScmResult getStatusScmResult()
public void setUpdateScmResult(UpdateScmResult updateScmResult)
public UpdateScmResult getUpdateScmResult()
public void setEditScmResult(EditScmResult editScmResult)
public EditScmResult getEditScmResult()
public void setUnEditScmResult(UnEditScmResult unEditScmResult)
public UnEditScmResult getUnEditScmResult()
public void setListScmResult(ListScmResult listScmResult)
public ListScmResult getListScmResult()
public void setBlameScmResult(BlameScmResult blameScmResult)
public BlameScmResult getBlameScmResult()
public MkdirScmResult getMkdirScmResult()
public void setMkdirScmResult(MkdirScmResult mkdirScmResult)
public ScmProviderRepository makeProviderScmRepository(String scmSpecificUrl,
char delimiter)
throws ScmRepositoryException
makeProviderScmRepository in interface ScmProviderScmRepositoryException
public ScmProviderRepository makeProviderScmRepository(File path)
throws ScmRepositoryException,
UnknownRepositoryStructure
makeProviderScmRepository in interface ScmProviderScmRepositoryException
UnknownRepositoryStructure
public List<String> validateScmUrl(String scmSpecificUrl,
char delimiter)
validateScmUrl in interface ScmProviderpublic String getScmSpecificFilename()
getScmSpecificFilename in interface ScmProvider
public AddScmResult add(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
add in interface ScmProviderScmException
public AddScmResult add(ScmRepository repository,
ScmFileSet fileSet,
String message)
throws ScmException
add in interface ScmProviderScmException
public AddScmResult add(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters commandParameters)
throws ScmException
add in interface ScmProviderScmException
public BranchScmResult branch(ScmRepository repository,
ScmFileSet fileSet,
String branchName)
throws ScmException
branch in interface ScmProviderScmException
public BranchScmResult branch(ScmRepository repository,
ScmFileSet fileSet,
String branchName,
String message)
throws ScmException
branch in interface ScmProviderScmException
public BranchScmResult branch(ScmRepository repository,
ScmFileSet fileSet,
String branchName,
ScmBranchParameters scmBranchParameters)
throws ScmException
branch in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
String branch)
throws ScmException
changeLog in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
String branch,
String datePattern)
throws ScmException
changeLog in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
String startTag,
String endTag)
throws ScmException
changeLog in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
String startTag,
String endTag,
String datePattern)
throws ScmException
changeLog in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
ScmBranch branch)
throws ScmException
changeLog in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
ScmBranch branch,
String datePattern)
throws ScmException
changeLog in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ChangeLogScmRequest scmRequest)
throws ScmException
changeLog in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion)
throws ScmException
changeLog in interface ScmProviderScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startRevision,
ScmVersion endRevision,
String datePattern)
throws ScmException
changeLog in interface ScmProviderScmException
public CheckInScmResult checkIn(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String message)
throws ScmException
checkIn in interface ScmProviderScmException
public CheckInScmResult checkIn(ScmRepository repository,
ScmFileSet fileSet,
String message)
throws ScmException
checkIn in interface ScmProviderScmException
public CheckInScmResult checkIn(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion revision,
String message)
throws ScmException
checkIn in interface ScmProviderScmException
public CheckOutScmResult checkOut(ScmRepository scmRepository,
ScmFileSet scmFileSet,
String tag,
boolean recursive)
throws ScmException
checkOut in interface ScmProviderScmException
public CheckOutScmResult checkOut(ScmRepository repository,
ScmFileSet fileSet,
String tag)
throws ScmException
checkOut in interface ScmProviderScmException
public CheckOutScmResult checkOut(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
checkOut in interface ScmProviderScmException
public CheckOutScmResult checkOut(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
throws ScmException
checkOut in interface ScmProviderScmException
public CheckOutScmResult checkOut(ScmRepository scmRepository,
ScmFileSet scmFileSet,
boolean recursive)
throws ScmException
checkOut in interface ScmProviderScmException
public CheckOutScmResult checkOut(ScmRepository scmRepository,
ScmFileSet scmFileSet,
ScmVersion version,
boolean recursive)
throws ScmException
checkOut in interface ScmProviderScmException
public DiffScmResult diff(ScmRepository repository,
ScmFileSet fileSet,
String startRevision,
String endRevision)
throws ScmException
diff in interface ScmProviderScmException
public DiffScmResult diff(ScmRepository scmRepository,
ScmFileSet scmFileSet,
ScmVersion startVersion,
ScmVersion endVersion)
throws ScmException
diff in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
Date lastUpdate,
String datePattern,
boolean runChangelog)
throws ScmException
ScmException
public EditScmResult edit(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
edit in interface ScmProviderScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet,
String tag)
throws ScmException
export in interface ScmProviderScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String outputDirectory)
throws ScmException
export in interface ScmProviderScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
export in interface ScmProviderScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
throws ScmException
export in interface ScmProviderScmException
public ExportScmResult export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
String outputDirectory)
throws ScmException
export in interface ScmProviderScmException
public ListScmResult list(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive,
String tag)
throws ScmException
list in interface ScmProviderScmException
public ListScmResult list(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive,
ScmVersion version)
throws ScmException
list in interface ScmProviderScmException
public RemoveScmResult remove(ScmRepository repository,
ScmFileSet fileSet,
String message)
throws ScmException
remove in interface ScmProviderScmException
public StatusScmResult status(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
status in interface ScmProviderScmException
public TagScmResult tag(ScmRepository repository,
ScmFileSet fileSet,
String tag)
throws ScmException
tag in interface ScmProviderScmException
public TagScmResult tag(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String message)
throws ScmException
tag in interface ScmProviderScmException
public TagScmResult tag(ScmRepository repository,
ScmFileSet fileSet,
String tagName,
ScmTagParameters scmTagParameters)
throws ScmException
tag in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
String tag)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
boolean runChangelog)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String datePattern)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
Date lastUpdate)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
Date lastUpdate,
String datePattern)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
boolean runChangelog)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
boolean runChangelog)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
String datePattern)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
Date lastUpdate)
throws ScmException
update in interface ScmProviderScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
Date lastUpdate,
String datePattern)
throws ScmException
update in interface ScmProviderScmException
public UnEditScmResult unedit(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
unedit in interface ScmProviderScmException
public BlameScmResult blame(ScmRepository repository,
ScmFileSet fileSet,
String filename)
throws ScmException
blame in interface ScmProviderScmException
public BlameScmResult blame(BlameScmRequest blameScmRequest)
throws ScmException
blame in interface ScmProviderScmException
public MkdirScmResult mkdir(ScmRepository repository,
ScmFileSet fileSet,
String message,
boolean createInLocal)
throws ScmException
mkdir in interface ScmProviderScmException
public InfoScmResult info(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
info in interface ScmProviderScmException
public RemoteInfoScmResult remoteInfo(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
remoteInfo in interface ScmProviderScmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||