org.apache.maven.scm
Class ScmTestCase

java.lang.Object
  extended byorg.apache.maven.scm.ScmTestCase
Direct Known Subclasses:
CheckInCommandTckTest, CheckOutCommandTckTest, DiffCommandTckTest, StatusCommandTckTest, TagCommandTckTest, UpdateCommandTckTest

public abstract class ScmTestCase
extends java.lang.Object

Version:
$Id: ScmTestCase.java 225265 2005-07-26 09:16:45Z evenisse $
Author:
Jason van Zyl

Field Summary
private static boolean debugExecute
           
protected static java.util.TimeZone GMT_TIME_ZONE
           
 
Constructor Summary
ScmTestCase()
           
 
Method Summary
 void assertPath(java.lang.String expectedPath, java.lang.String actualPath)
           
 void assertResultIsSuccess(org.apache.maven.scm.ScmResult result)
           
static void execute(java.io.File workingDirectory, java.lang.String executable, java.lang.String arguments)
           
static java.util.Date getDate(int year, int month, int day)
           
protected static java.util.Date getDate(int year, int month, int day, java.util.TimeZone tz)
           
protected  java.lang.String getModule()
           
protected  java.io.File getRepository()
           
protected  org.apache.maven.scm.ScmFileSet getScmFileSet()
           
protected  org.apache.maven.scm.manager.ScmManager getScmManager()
           
protected  java.io.File getWorkingDirectory()
           
static void makeDirectory(java.io.File basedir, java.lang.String fileName)
           
static void makeFile(java.io.File basedir, java.lang.String fileName)
           
static void makeFile(java.io.File basedir, java.lang.String fileName, java.lang.String contents)
           
protected  org.apache.maven.scm.repository.ScmRepository makeScmRepository(java.lang.String scmUrl)
           
protected static void setDebugExecute(boolean debugExecute)
           
protected  void setUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GMT_TIME_ZONE

protected static final java.util.TimeZone GMT_TIME_ZONE

debugExecute

private static boolean debugExecute
Constructor Detail

ScmTestCase

public ScmTestCase()
Method Detail

getModule

protected java.lang.String getModule()

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

getScmManager

protected org.apache.maven.scm.manager.ScmManager getScmManager()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

makeScmRepository

protected org.apache.maven.scm.repository.ScmRepository makeScmRepository(java.lang.String scmUrl)
                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

assertPath

public void assertPath(java.lang.String expectedPath,
                       java.lang.String actualPath)
                throws java.lang.Exception
Throws:
java.lang.Exception

assertResultIsSuccess

public void assertResultIsSuccess(org.apache.maven.scm.ScmResult result)

getRepository

protected java.io.File getRepository()

getScmFileSet

protected org.apache.maven.scm.ScmFileSet getScmFileSet()

getWorkingDirectory

protected java.io.File getWorkingDirectory()

setDebugExecute

protected static void setDebugExecute(boolean debugExecute)

execute

public static void execute(java.io.File workingDirectory,
                           java.lang.String executable,
                           java.lang.String arguments)
                    throws java.lang.Exception
Throws:
java.lang.Exception

makeDirectory

public static void makeDirectory(java.io.File basedir,
                                 java.lang.String fileName)

makeFile

public static void makeFile(java.io.File basedir,
                            java.lang.String fileName)
                     throws java.io.IOException
Throws:
java.io.IOException

makeFile

public static void makeFile(java.io.File basedir,
                            java.lang.String fileName,
                            java.lang.String contents)
                     throws java.io.IOException
Throws:
java.io.IOException

getDate

public static java.util.Date getDate(int year,
                                     int month,
                                     int day)

getDate

protected static java.util.Date getDate(int year,
                                        int month,
                                        int day,
                                        java.util.TimeZone tz)