public abstract class ScmTckTestCase extends ScmTestCase
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
scmFileNames |
private ScmRepository |
scmRepository |
GMT_TIME_ZONE| Constructor and Description |
|---|
ScmTckTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToWorkingTree(java.io.File workingDirectory,
java.io.File file,
ScmRepository repository)
Convenience method to add a file to the working tree at the working directory
|
protected CheckInScmResult |
checkIn(java.io.File workingDirectory,
ScmRepository repository)
Convenience method to check in files to the repository
|
protected CheckOutScmResult |
checkOut(java.io.File workingDirectory,
ScmRepository repository)
Convenience method to check out files from the repository
|
protected EditScmResult |
edit(java.io.File basedir,
java.lang.String includes,
java.lang.String excludes,
ScmRepository repository) |
protected java.util.List<java.lang.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 java.lang.String |
getScmUrl() |
abstract void |
initRepo()
Initialize repository at the
getScmUrl() location with the files in getScmFileNames() |
protected java.util.Map<java.lang.String,ScmFile> |
mapFilesByPath(java.util.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, setDebugExecutecustomizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainerassertEquals, 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, toStringprivate ScmRepository scmRepository
private java.util.List<java.lang.String> scmFileNames
public abstract java.lang.String getScmUrl()
throws java.lang.Exception
java.lang.Exception - if anyprotected java.util.List<java.lang.String> getScmFileNames()
List of String objectspublic abstract void initRepo()
throws java.lang.Exception
getScmUrl() location with the files in getScmFileNames()
The setup is also asserting on the existence of these files. java.lang.Exception - if anyprotected void setUp()
throws java.lang.Exception
setUp in class ScmTestCasejava.lang.Exceptionpublic void removeRepo()
throws java.lang.Exception
java.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class org.codehaus.plexus.PlexusTestCasejava.lang.ExceptionTestCase.tearDown()protected ScmRepository getScmRepository() throws java.lang.Exception
java.lang.Exceptionprotected CheckOutScmResult checkOut(java.io.File workingDirectory, ScmRepository repository) throws java.lang.Exception
java.lang.Exceptionprotected CheckInScmResult checkIn(java.io.File workingDirectory, ScmRepository repository) throws java.lang.Exception
java.lang.Exceptionprotected void addToWorkingTree(java.io.File workingDirectory,
java.io.File file,
ScmRepository repository)
throws java.lang.Exception
java.lang.Exceptionprotected java.util.Map<java.lang.String,ScmFile> mapFilesByPath(java.util.List<ScmFile> files)
files - List with ScmFilesprotected EditScmResult edit(java.io.File basedir, java.lang.String includes, java.lang.String excludes, ScmRepository repository) throws java.lang.Exception
java.lang.Exception