|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.scm.ScmTestCase
org.apache.maven.scm.ScmTckTestCase
public abstract class ScmTckTestCase
Base class for all TcK tests. Basically all it does is to setup a default test enviroment common for all tck tests. The default setup includes:
Field Summary |
---|
Fields inherited from class org.apache.maven.scm.ScmTestCase |
---|
GMT_TIME_ZONE |
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
basedir, container |
Constructor Summary | |
---|---|
ScmTckTestCase()
|
Method Summary | |
---|---|
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 CheckOutScmResult |
checkOut(java.io.File workingDirectory,
ScmRepository repository)
Convenience method to checkout files from the repository |
protected java.util.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 java.lang.String |
getScmUrl()
|
abstract void |
initRepo()
Initialize repository at the getScmUrl() location with the files in getScmFileNames() |
protected void |
setUp()
|
Methods inherited from class org.apache.maven.scm.ScmTestCase |
---|
assertCommandLine, assertFile, assertPath, assertResultIsSuccess, execute, getAssertionCopy, getDate, getDate, getDate, getModule, getRepository, getRepositoryRoot, getScmFileSet, getScmManager, getUpdatingCopy, getWorkingCopy, getWorkingDirectory, isSystemCmd, makeDirectory, makeFile, makeFile, makeScmRepository, setDebugExecute |
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
---|
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScmTckTestCase()
Method Detail |
---|
public abstract java.lang.String getScmUrl() throws java.lang.Exception
java.lang.Exception
- if anyprotected java.util.List 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 ScmTestCase
java.lang.Exception
protected ScmRepository getScmRepository() throws java.lang.Exception
java.lang.Exception
protected CheckOutScmResult checkOut(java.io.File workingDirectory, ScmRepository repository) throws java.lang.Exception
java.lang.Exception
protected void addToWorkingTree(java.io.File workingDirectory, java.io.File file, ScmRepository repository) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |