Package org.apache.maven.scm.provider
Class ScmProviderStub
- java.lang.Object
- 
- org.apache.maven.scm.provider.ScmProviderStub
 
- 
- All Implemented Interfaces:
- ScmProvider
 
 public class ScmProviderStub extends Object implements ScmProvider 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- Author:
- Carlos Sanchez
 
- 
- 
Constructor SummaryConstructors Constructor Description ScmProviderStub()Create a new ScmProviderStub with bogus (not null) attributes.
 - 
Method Summary- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.maven.scm.provider.ScmProvidersetInteractive
 
- 
 
- 
- 
- 
Constructor Detail- 
ScmProviderStubpublic ScmProviderStub() Create a new ScmProviderStub with bogus (not null) attributes.
 
- 
 - 
Method Detail- 
sanitizeTagNamepublic String sanitizeTagName(String tag) - Specified by:
- sanitizeTagNamein interface- ScmProvider
 
 - 
validateTagNamepublic boolean validateTagName(String tag) - Specified by:
- validateTagNamein interface- ScmProvider
 
 - 
getScmTypepublic String getScmType() - Specified by:
- getScmTypein interface- ScmProvider
 
 - 
setScmSpecificFilenamepublic void setScmSpecificFilename(String scmSpecificFilename) 
 - 
requiresEditModepublic boolean requiresEditMode() - Specified by:
- requiresEditModein interface- ScmProvider
 
 - 
setAddScmResultpublic void setAddScmResult(AddScmResult addScmResult) 
 - 
getAddScmResultpublic AddScmResult getAddScmResult() 
 - 
setBranchScmResultpublic void setBranchScmResult(BranchScmResult branchScmResult) 
 - 
getBranchScmResultpublic BranchScmResult getBranchScmResult() 
 - 
setCheckInScmResultpublic void setCheckInScmResult(CheckInScmResult checkInScmResult) 
 - 
getCheckInScmResultpublic CheckInScmResult getCheckInScmResult() 
 - 
setCheckOutScmResultpublic void setCheckOutScmResult(CheckOutScmResult checkOutScmResult) 
 - 
getCheckOutScmResultpublic CheckOutScmResult getCheckOutScmResult() 
 - 
setChangeLogScmResultpublic void setChangeLogScmResult(ChangeLogScmResult changeLogScmResult) 
 - 
getChangeLogScmResultpublic ChangeLogScmResult getChangeLogScmResult() 
 - 
setDiffScmResultpublic void setDiffScmResult(DiffScmResult diffScmResult) 
 - 
getDiffScmResultpublic DiffScmResult getDiffScmResult() 
 - 
getExportScmResultpublic ExportScmResult getExportScmResult() 
 - 
setExportScmResultpublic void setExportScmResult(ExportScmResult exportScmResult) 
 - 
setTagScmResultpublic void setTagScmResult(TagScmResult tagScmResult) 
 - 
getTagScmResultpublic TagScmResult getTagScmResult() 
 - 
setUntagScmResultpublic void setUntagScmResult(UntagScmResult untagScmResult) 
 - 
getUntagScmResultpublic UntagScmResult getUntagScmResult() 
 - 
setRemoveScmResultpublic void setRemoveScmResult(RemoveScmResult removeScmResult) 
 - 
getRemoveScmResultpublic RemoveScmResult getRemoveScmResult() 
 - 
setStatusScmResultpublic void setStatusScmResult(StatusScmResult statusScmResult) 
 - 
getStatusScmResultpublic StatusScmResult getStatusScmResult() 
 - 
setUpdateScmResultpublic void setUpdateScmResult(UpdateScmResult updateScmResult) 
 - 
getUpdateScmResultpublic UpdateScmResult getUpdateScmResult() 
 - 
setEditScmResultpublic void setEditScmResult(EditScmResult editScmResult) 
 - 
getEditScmResultpublic EditScmResult getEditScmResult() 
 - 
setUnEditScmResultpublic void setUnEditScmResult(UnEditScmResult unEditScmResult) 
 - 
getUnEditScmResultpublic UnEditScmResult getUnEditScmResult() 
 - 
setListScmResultpublic void setListScmResult(ListScmResult listScmResult) 
 - 
getListScmResultpublic ListScmResult getListScmResult() 
 - 
setBlameScmResultpublic void setBlameScmResult(BlameScmResult blameScmResult) 
 - 
getBlameScmResultpublic BlameScmResult getBlameScmResult() 
 - 
getMkdirScmResultpublic MkdirScmResult getMkdirScmResult() 
 - 
setMkdirScmResultpublic void setMkdirScmResult(MkdirScmResult mkdirScmResult) 
 - 
makeProviderScmRepositorypublic ScmProviderRepository makeProviderScmRepository(String scmSpecificUrl, char delimiter) throws ScmRepositoryException - Specified by:
- makeProviderScmRepositoryin interface- ScmProvider
- Throws:
- ScmRepositoryException
 
 - 
makeProviderScmRepositorypublic ScmProviderRepository makeProviderScmRepository(File path) throws ScmRepositoryException, UnknownRepositoryStructure - Specified by:
- makeProviderScmRepositoryin interface- ScmProvider
- Throws:
- ScmRepositoryException
- UnknownRepositoryStructure
 
 - 
validateScmUrlpublic List<String> validateScmUrl(String scmSpecificUrl, char delimiter) - Specified by:
- validateScmUrlin interface- ScmProvider
 
 - 
getScmSpecificFilenamepublic String getScmSpecificFilename() - Specified by:
- getScmSpecificFilenamein interface- ScmProvider
 
 - 
addpublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet) throws ScmException - Specified by:
- addin interface- ScmProvider
- Throws:
- ScmException
 
 - 
addpublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException - Specified by:
- addin interface- ScmProvider
- Throws:
- ScmException
 
 - 
addpublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet, CommandParameters commandParameters) throws ScmException - Specified by:
- addin interface- ScmProvider
- Throws:
- ScmException
 
 - 
branchpublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName) throws ScmException - Specified by:
- branchin interface- ScmProvider
- Throws:
- ScmException
 
 - 
branchpublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, String message) throws ScmException - Specified by:
- branchin interface- ScmProvider
- Throws:
- ScmException
 
 - 
branchpublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, ScmBranchParameters scmBranchParameters) throws ScmException - Specified by:
- branchin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch, String datePattern) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag, String datePattern) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch, String datePattern) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ChangeLogScmRequest scmRequest) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startRevision, ScmVersion endRevision, String datePattern) throws ScmException - Specified by:
- changeLogin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkInpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String tag, String message) throws ScmException - Specified by:
- checkInin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkInpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException - Specified by:
- checkInin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkInpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, ScmVersion revision, String message) throws ScmException - Specified by:
- checkInin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkInpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
- checkInin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, String tag, boolean recursive) throws ScmException - Specified by:
- checkOutin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException - Specified by:
- checkOutin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet) throws ScmException - Specified by:
- checkOutin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException - Specified by:
- checkOutin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, boolean recursive) throws ScmException - Specified by:
- checkOutin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion version, boolean recursive) throws ScmException - Specified by:
- checkOutin interface- ScmProvider
- Throws:
- ScmException
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion version, CommandParameters commandParameters) throws ScmException - Specified by:
- checkOutin interface- ScmProvider
- Throws:
- ScmException
 
 - 
diffpublic DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, String startRevision, String endRevision) throws ScmException - Specified by:
- diffin interface- ScmProvider
- Throws:
- ScmException
 
 - 
diffpublic DiffScmResult diff(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException - Specified by:
- diffin interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate, String datePattern, boolean runChangelog) throws ScmException - Returns:
- getUpdateScmResult() always
- Throws:
- ScmException
 
 - 
editpublic EditScmResult edit(ScmRepository repository, ScmFileSet fileSet) throws ScmException - Specified by:
- editin interface- ScmProvider
- Throws:
- ScmException
 
 - 
exportpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException - Specified by:
- exportin interface- ScmProvider
- Throws:
- ScmException
 
 - 
exportpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String tag, String outputDirectory) throws ScmException - Specified by:
- exportin interface- ScmProvider
- Throws:
- ScmException
 
 - 
exportpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet) throws ScmException - Specified by:
- exportin interface- ScmProvider
- Throws:
- ScmException
 
 - 
exportpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException - Specified by:
- exportin interface- ScmProvider
- Throws:
- ScmException
 
 - 
exportpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String outputDirectory) throws ScmException - Specified by:
- exportin interface- ScmProvider
- Throws:
- ScmException
 
 - 
listpublic ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, String tag) throws ScmException - Specified by:
- listin interface- ScmProvider
- Throws:
- ScmException
 
 - 
listpublic ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion version) throws ScmException - Specified by:
- listin interface- ScmProvider
- Throws:
- ScmException
 
 - 
removepublic RemoveScmResult remove(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException - Specified by:
- removein interface- ScmProvider
- Throws:
- ScmException
 
 - 
statuspublic StatusScmResult status(ScmRepository repository, ScmFileSet fileSet) throws ScmException - Specified by:
- statusin interface- ScmProvider
- Throws:
- ScmException
 
 - 
tagpublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException - Specified by:
- tagin interface- ScmProvider
- Throws:
- ScmException
 
 - 
tagpublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tag, String message) throws ScmException - Specified by:
- tagin interface- ScmProvider
- Throws:
- ScmException
 
 - 
tagpublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, ScmTagParameters scmTagParameters) throws ScmException - Specified by:
- tagin interface- ScmProvider
- Throws:
- ScmException
 
 - 
untagpublic UntagScmResult untag(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
- untagin interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, boolean runChangelog) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, String datePattern) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate, String datePattern) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, boolean runChangelog) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, boolean runChangelog) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String datePattern) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate, String datePattern) throws ScmException - Specified by:
- updatein interface- ScmProvider
- Throws:
- ScmException
 
 - 
uneditpublic UnEditScmResult unedit(ScmRepository repository, ScmFileSet fileSet) throws ScmException - Specified by:
- uneditin interface- ScmProvider
- Throws:
- ScmException
 
 - 
blamepublic BlameScmResult blame(ScmRepository repository, ScmFileSet fileSet, String filename) throws ScmException - Specified by:
- blamein interface- ScmProvider
- Throws:
- ScmException
 
 - 
blamepublic BlameScmResult blame(BlameScmRequest blameScmRequest) throws ScmException - Specified by:
- blamein interface- ScmProvider
- Throws:
- ScmException
 
 - 
mkdirpublic MkdirScmResult mkdir(ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal) throws ScmException - Specified by:
- mkdirin interface- ScmProvider
- Throws:
- ScmException
 
 - 
infopublic InfoScmResult info(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
- infoin interface- ScmProvider
- Throws:
- ScmException
 
 - 
remoteInfopublic RemoteInfoScmResult remoteInfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
- remoteInfoin interface- ScmProvider
- Throws:
- ScmException
 
 
- 
 
-