Class StatusCommandTckTest
- java.lang.Object
-
- org.apache.maven.scm.PlexusJUnit4TestCase
-
- org.apache.maven.scm.ScmTestCase
-
- org.apache.maven.scm.ScmTckTestCase
-
- org.apache.maven.scm.tck.command.status.StatusCommandTckTest
-
public abstract class StatusCommandTckTest extends ScmTckTestCase
This test tests the status command.It works like this:
- Check out the files to directory getWorkingCopy().
- Check out the files to directory getUpdatingCopy().
- Change the files in getWorkingCopy().
- Commit the files in getWorkingCopy(). Note that the provider must not use the check in command as it can be guaranteed to work as it's not yet tested.
- Use the update command in getUpdatingCopy() to assert that the files that was supposed to be updated actually was updated.
- Author:
- Brett Porter
-
-
Field Summary
-
Fields inherited from class org.apache.maven.scm.ScmTestCase
GMT_TIME_ZONE
-
Fields inherited from class org.apache.maven.scm.PlexusJUnit4TestCase
testName
-
-
Constructor Summary
Constructors Constructor Description StatusCommandTckTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
commit(File workingDirectory, ScmRepository repository)
protected boolean
commitUpdateCopy()
void
testStatusCommand()
-
Methods inherited from class org.apache.maven.scm.ScmTckTestCase
addToWorkingTree, checkIn, checkOut, checkScmPresence, edit, getScmFileNames, getScmProviderCommand, getScmRepository, getScmUrl, initRepo, mapFilesByPath, remove, removeRepo, setUp, tearDown
-
Methods inherited from class org.apache.maven.scm.ScmTestCase
assertCommandLine, assertFile, assertPath, assertResultIsSuccess, checkScmPresence, customizeContainerConfiguration, deleteDirectory, execute, getAssertionCopy, getDate, getDate, getDate, getRepository, getRepositoryRoot, getScmFileSet, getScmManager, getUpdatingCopy, getWorkingCopy, getWorkingDirectory, isSystemCmd, makeDirectory, makeFile, makeFile, makeScmRepository, printOutputError, setDebugExecute
-
Methods inherited from class org.apache.maven.scm.PlexusJUnit4TestCase
customizeComponentConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getCustomModules, getName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, lookupMap, release, setupContainer
-
-
-
-
Constructor Detail
-
StatusCommandTckTest
public StatusCommandTckTest()
-
-
Method Detail
-
commit
protected void commit(File workingDirectory, ScmRepository repository) throws Exception
- Throws:
Exception
-
commitUpdateCopy
protected boolean commitUpdateCopy()
-
testStatusCommand
public void testStatusCommand() throws Exception
- Throws:
Exception
-
-