|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--gate.persist.TestPersist
Persistence test class
Field Summary | |
private static boolean |
DEBUG
Debug flag |
private static String |
JDBC_URL
|
private static Corpus |
sampleCorpus
|
private static Long |
sampleCorpus_lrID
|
private static Document |
sampleDoc
|
private static Long |
sampleDoc_lrID
|
private String |
VERY_LONG_STRING
|
Fields inherited from class junit.framework.TestCase |
fName |
Constructor Summary | |
TestPersist(String name)
Construction |
Method Summary | |
private Corpus |
createTestCorpus()
|
private Document |
createTestDocument()
|
static void |
main(String[] args)
|
void |
setUp()
Fixture set up |
static junit.framework.Test |
suite()
Test suite routine for the test runner |
void |
tearDown()
Put things back as they should be after running tests (reinitialise the CREOLE register). |
void |
testDB_UseCase01()
Test the DS register. |
void |
testDB_UseCase02()
|
void |
testDB_UseCase03()
|
void |
testDB_UseCase04()
|
void |
testDB_UseCase101()
Test the DS register. |
void |
testDB_UseCase102()
Test the DS register. |
void |
testDB_UseCase103()
|
void |
testDelete()
Test LR deletion |
void |
testDSR()
Test the DS register. |
void |
testMultipleLrs()
Test multiple LRs |
void |
testSaveRestore()
Test resource save and restore |
void |
testSimple()
Simple test |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static String JDBC_URL
private static final boolean DEBUG
private static Long sampleDoc_lrID
private static Long sampleCorpus_lrID
private static Document sampleDoc
private static Corpus sampleCorpus
private final String VERY_LONG_STRING
Constructor Detail |
public TestPersist(String name) throws GateException
Method Detail |
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
public void testSaveRestore() throws Exception
public void testSimple() throws Exception
public void testMultipleLrs() throws Exception
public void testDelete() throws Exception
public void testDSR() throws Exception
public static junit.framework.Test suite()
private Document createTestDocument() throws Exception
private Corpus createTestCorpus() throws Exception
public void testDB_UseCase01() throws Exception
public void testDB_UseCase02() throws Exception
public void testDB_UseCase03() throws Exception
public void testDB_UseCase04() throws Exception
public void testDB_UseCase101() throws Exception
public void testDB_UseCase102() throws Exception
public void testDB_UseCase103() throws Exception
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |