|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase gate.versioning.cmdline.AbstractTestVersionControl
public abstract class AbstractTestVersionControl
Tests for version control API.
Field Summary | |
---|---|
protected File |
checkedOutDir
|
protected String |
checkedOutDirName
|
protected boolean |
DEBUG
|
protected File |
newRootDir
|
protected Repository |
rep
|
protected File |
rootDir
|
protected String |
testDirPath
|
protected URL |
testDirURL
|
protected String |
testFileName
|
protected String |
testsDirName
|
protected File |
workingDir
|
Constructor Summary | |
---|---|
AbstractTestVersionControl(String name)
|
Method Summary | |
---|---|
File |
appendToTestFile()
Helper function for external users of this class. |
Repository |
checkOutTestDir()
Helper function for external users of this class. |
protected abstract String |
getRepType()
What type of repository implementation to use. |
protected abstract String |
getRootName()
Basename of the repository directory. |
protected abstract String |
getRootPrefix()
Prefix of the repository directory (e.g. |
void |
setUp()
Create new repository object for testing |
void |
tearDown()
Delete any checked-out files |
void |
testAddAndDelete()
|
void |
testCheckout()
|
void |
testCreate()
|
void |
testDiffAndCheckin()
|
void |
testExists()
Check testExists. |
void |
testImport()
Test the operation of Repository.importDir(String) . |
void |
testImport2()
Check that testImport can run twice on the same test fixture without failing. |
void |
testInit()
Test initialisation |
void |
testLifeCycle()
Lifecycle test - import, existence, checkout, modify, ... |
void |
testStatus()
|
void |
testStatusIndicators()
|
void |
testUpdate()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String testsDirName
protected URL testDirURL
protected String checkedOutDirName
protected String testFileName
protected String testDirPath
protected File rootDir
protected File workingDir
protected File checkedOutDir
protected File newRootDir
protected boolean DEBUG
protected Repository rep
Constructor Detail |
---|
public AbstractTestVersionControl(String name)
Method Detail |
---|
protected abstract String getRepType()
protected abstract String getRootName()
protected abstract String getRootPrefix()
public void setUp() throws IOException, UnsupportedEncodingException, gate.util.GateException, ClassNotFoundException, InstantiationException, IllegalAccessException
setUp
in class junit.framework.TestCase
IOException
UnsupportedEncodingException
gate.util.GateException
ClassNotFoundException
InstantiationException
IllegalAccessException
public void testInit()
public void testCheckout()
public void testDiffAndCheckin() throws Exception
Exception
public void testUpdate()
public void testStatus()
public void testAddAndDelete()
public void testCreate() throws gate.util.GateException
gate.util.GateException
public void testStatusIndicators() throws Exception
Exception
public void testImport() throws Exception
Repository.importDir(String)
.
gate.util.GateException
Exception
public void testImport2() throws Exception
gate.util.GateException
Exception
public void testExists() throws Exception
Exception
public void testLifeCycle() throws Exception
Exception
public void tearDown()
tearDown
in class junit.framework.TestCase
public Repository checkOutTestDir() throws Exception
Exception
public File appendToTestFile() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |