org.apache.maven.scm.tck.command.status
Class StatusCommandTckTest
java.lang.Object
org.apache.maven.scm.ScmTestCase
org.apache.maven.scm.tck.command.status.StatusCommandTckTest
- public abstract class StatusCommandTckTest
- extends ScmTestCase
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.
- Version:
- $Id: StatusCommandTckTest.java 225265 2005-07-26 09:16:45Z evenisse $
- Author:
- Brett Porter
Method Summary |
private void |
addToRepository(java.io.File workingDirectory,
java.io.File file,
org.apache.maven.scm.repository.ScmRepository repository)
|
private void |
assertFile(java.io.File root,
java.lang.String fileName)
|
private void |
checkOut(java.io.File workingDirectory,
org.apache.maven.scm.repository.ScmRepository repository)
|
private void |
commit(java.io.File workingDirectory,
org.apache.maven.scm.repository.ScmRepository repository)
|
protected java.io.File |
getRepositoryRoot()
|
abstract java.lang.String |
getScmUrl()
|
protected java.io.File |
getUpdatingCopy()
|
protected java.io.File |
getWorkingCopy()
|
abstract void |
initRepo()
Copy the existing checked in repository to the working directory. |
void |
setUp()
|
void |
testStatusCommand()
|
Methods inherited from class org.apache.maven.scm.ScmTestCase |
assertPath, assertResultIsSuccess, execute, getDate, getDate, getModule, getRepository, getScmFileSet, getScmManager, getWorkingDirectory, makeDirectory, makeFile, makeFile, makeScmRepository, setDebugExecute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatusCommandTckTest
public StatusCommandTckTest()
getScmUrl
public abstract java.lang.String getScmUrl()
throws java.lang.Exception
- Throws:
java.lang.Exception
initRepo
public abstract void initRepo()
throws java.lang.Exception
- Copy the existing checked in repository to the working directory.
(src/test/repository/my-cvs-repository)
- Throws:
java.lang.Exception
checkOut
private void checkOut(java.io.File workingDirectory,
org.apache.maven.scm.repository.ScmRepository repository)
throws java.lang.Exception
- Throws:
java.lang.Exception
addToRepository
private void addToRepository(java.io.File workingDirectory,
java.io.File file,
org.apache.maven.scm.repository.ScmRepository repository)
throws java.lang.Exception
- Throws:
java.lang.Exception
commit
private void commit(java.io.File workingDirectory,
org.apache.maven.scm.repository.ScmRepository repository)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRepositoryRoot
protected java.io.File getRepositoryRoot()
getWorkingCopy
protected java.io.File getWorkingCopy()
getUpdatingCopy
protected java.io.File getUpdatingCopy()
setUp
public void setUp()
throws java.lang.Exception
- Overrides:
setUp
in class ScmTestCase
- Throws:
java.lang.Exception
testStatusCommand
public void testStatusCommand()
throws java.lang.Exception
- Throws:
java.lang.Exception
assertFile
private void assertFile(java.io.File root,
java.lang.String fileName)
throws java.lang.Exception
- Throws:
java.lang.Exception