public abstract class ScmTckTestCase extends ScmTestCase
GMT_TIME_ZONE| Constructor and Description |
|---|
ScmTckTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToWorkingTree(File workingDirectory,
File file,
ScmRepository repository)
Convenience method to add a file to the working tree at the working directory
|
protected CheckInScmResult |
checkIn(File workingDirectory,
ScmRepository repository)
Convenience method to check in files to the repository
|
protected CheckOutScmResult |
checkOut(File workingDirectory,
ScmRepository repository)
Convenience method to check out files from the repository
|
protected EditScmResult |
edit(File basedir,
String includes,
String excludes,
ScmRepository repository) |
protected List<String> |
getScmFileNames()
Get the list of file names that is supposed to be in the test repo.
|
protected ScmRepository |
getScmRepository()
Convenience method to get the ScmRepository for this provider
|
abstract String |
getScmUrl() |
abstract void |
initRepo()
Initialize repository at the
getScmUrl() location with the files in getScmFileNames()
The setup is also asserting on the existence of these files. |
protected Map<String,ScmFile> |
mapFilesByPath(List<ScmFile> files)
take the files of the given list, add them to a TreeMap and
use the pathName String as key for the Map.
|
void |
removeRepo()
This method is available to those SCM clients that need to perform
a cleanup at the end of the tests.
|
protected void |
setUp() |
protected void |
tearDown()
Provided to allow removeRepo() to be called.
|
assertCommandLine, assertFile, assertPath, assertResultIsSuccess, deleteDirectory, execute, getAssertionCopy, getDate, getDate, getDate, getModule, getRepository, getRepositoryRoot, getScmFileSet, getScmManager, getSecDispatcher, getUpdatingCopy, getWorkingCopy, getWorkingDirectory, isSystemCmd, makeDirectory, makeFile, makeFile, makeScmRepository, printOutputError, setDebugExecutecreateContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, releaseassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic ScmTckTestCase()
public abstract String getScmUrl() throws Exception
Exception - if anyprotected List<String> getScmFileNames()
public abstract void initRepo() throws Exception
getScmUrl() location with the files in getScmFileNames()
The setup is also asserting on the existence of these files. Exception - if anyprotected void setUp() throws Exception
setUp in class ScmTestCaseExceptionpublic void removeRepo() throws Exception
Exceptionprotected void tearDown() throws Exception
tearDown in class org.codehaus.plexus.PlexusTestCaseExceptionTestCase.tearDown()protected ScmRepository getScmRepository() throws Exception
Exceptionprotected CheckOutScmResult checkOut(File workingDirectory, ScmRepository repository) throws Exception
Exceptionprotected CheckInScmResult checkIn(File workingDirectory, ScmRepository repository) throws Exception
Exceptionprotected void addToWorkingTree(File workingDirectory, File file, ScmRepository repository) throws Exception
Exceptionprotected Map<String,ScmFile> mapFilesByPath(List<ScmFile> files)
files - List with ScmFilesprotected EditScmResult edit(File basedir, String includes, String excludes, ScmRepository repository) throws Exception
ExceptionCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.