org.apache.maven.scm.tck.command.diff
Class DiffCommandTckTest

java.lang.Object
  extended byorg.apache.maven.scm.ScmTestCase
      extended byorg.apache.maven.scm.tck.command.diff.DiffCommandTckTest

public abstract class DiffCommandTckTest
extends ScmTestCase

This test tests the diff command.

Version:
$Id: DiffCommandTckTest.java 225265 2005-07-26 09:16:45Z evenisse $
Author:
Brett Porter

Field Summary
 
Fields inherited from class org.apache.maven.scm.ScmTestCase
GMT_TIME_ZONE
 
Constructor Summary
DiffCommandTckTest()
           
 
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)
           
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 testDiffCommand()
           
 
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
 

Constructor Detail

DiffCommandTckTest

public DiffCommandTckTest()
Method Detail

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

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

testDiffCommand

public void testDiffCommand()
                     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