Groovy Documentation

java.gate.versioning.cmdline
Class AbstractTestVersionControl

java.lang.Object
  junit.framework.Assert
      junit.framework.TestCase
          java.gate.versioning.cmdline.AbstractTestVersionControl

class AbstractTestVersionControl
extends TestCase

Tests for version control API.


Field Summary
protected boolean DEBUG

protected File checkedOutDir

protected String checkedOutDirName

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 String getRepType()

What type of repository implementation to use.

protected String getRootName()

Basename of the repository directory.

protected 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 {

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 TestCase
run, run, toString, getName, setName, countTestCases, runBare, fail, fail, assertNotNull, assertNotNull, assertTrue, assertTrue, assertFalse, assertFalse, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNull, assertNull, assertSame, assertSame, assertNotSame, assertNotSame, failSame, failNotSame, failNotEquals, wait, wait, wait, hashCode, getClass, equals, notify, notifyAll
 
Methods inherited from class Assert
fail, fail, assertNotNull, assertNotNull, assertTrue, assertTrue, assertFalse, assertFalse, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNull, assertNull, assertSame, assertSame, assertNotSame, assertNotSame, failSame, failNotSame, failNotEquals, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Field Detail

DEBUG

protected boolean DEBUG


checkedOutDir

protected File checkedOutDir


checkedOutDirName

protected String checkedOutDirName


newRootDir

protected File newRootDir


rep

protected Repository rep


rootDir

protected File rootDir


testDirPath

protected String testDirPath


testDirURL

protected URL testDirURL


testFileName

protected String testFileName


testsDirName

protected String testsDirName


workingDir

protected File workingDir


 
Constructor Detail

AbstractTestVersionControl

public AbstractTestVersionControl(String name)


 
Method Detail

appendToTestFile

public File appendToTestFile()
Helper function for external users of this class. Append line to test file.
return:
File the checked out file.


checkOutTestDir

public Repository checkOutTestDir()
Helper function for external users of this class. Check out test dir.
return:
Repository the repository.


getRepType

protected String getRepType()
What type of repository implementation to use.


getRootName

protected String getRootName()
Basename of the repository directory.


getRootPrefix

protected String getRootPrefix()
Prefix of the repository directory (e.g. "file:///") or "".


setUp

public void setUp()
Create new repository object for testing


tearDown

public void tearDown()
Delete any checked-out files


testAddAndDelete

public void testAddAndDelete()


testCheckout

public void testCheckout()


testCreate

public void testCreate()


testDiffAndCheckin

public void testDiffAndCheckin()


testExists

public void testExists()
Check testExists.


testImport

public void testImport()
Test the operation of Repository#importDir(String).
throws:
GateException


testImport2

public void testImport2()
Check that testImport can run twice on the same test fixture without failing.
throws:
GateException


testInit

public void testInit()
Test initialisation


testLifeCycle

public void testLifeCycle()
Lifecycle test - import, existence, checkout, modify, ...


testStatus

public void testStatus()


testStatusIndicators

public void testStatusIndicators()
throws:
Exception


testUpdate

public void testUpdate()


 

Groovy Documentation