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 CheckOutScmResult |
checkOut(File workingDirectory,
ScmRepository repository)
Convenience method to checkout files from the repository
|
protected List |
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() |
protected Map |
mapFilesByPath(List files)
take the files of the given list, add them to a TreeMap and
use the pathName String as key for the Map.
|
protected void |
setUp() |
assertCommandLine, assertFile, assertPath, assertResultIsSuccess, execute, getAssertionCopy, getDate, getDate, getDate, getModule, getRepository, getRepositoryRoot, getScmFileSet, getScmManager, getUpdatingCopy, getWorkingCopy, getWorkingDirectory, isSystemCmd, makeDirectory, makeFile, makeFile, makeScmRepository, setDebugExecute
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
assertEquals, 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, fail, fail, failNotEquals, failNotSame, failSame
public abstract String getScmUrl() throws Exception
Exception
- if anyprotected List 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 ScmTestCase
Exception
protected ScmRepository getScmRepository() throws Exception
Exception
protected CheckOutScmResult checkOut(File workingDirectory, ScmRepository repository) throws Exception
Exception
protected void addToWorkingTree(File workingDirectory, File file, ScmRepository repository) throws Exception
Exception
protected Map mapFilesByPath(List files)
files
- List with ScmFile
sCopyright © 2003–2014. All rights reserved.