|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
gate.persist.TestPersist
Persistence test class
Field Summary | |
private static String |
ASCII_STRING
|
private static int |
dbType
|
private static boolean |
DEBUG
Debug flag |
private static String |
JDBC_URL
|
private static String |
JDBC_URL_1
|
private static String |
JDBC_URL_2
|
private static DocumentContent |
sample_content
|
private static AnnotationSet |
sample_defaultASet
|
private static FeatureMap |
sample_docFeatures
|
private static String |
sample_encoding
|
private static Long |
sample_endOffset
|
private static Boolean |
sample_markupAware
|
private static String |
sample_name
|
private static Map |
sample_namedASets
|
private static URL |
sample_sourceURL
|
private static Long |
sample_startOffset
|
private static Corpus |
sampleCorpus
|
private static Long |
sampleCorpus_lrID
|
private static Long |
sampleDoc_lrID
|
private static String |
UNICODE_STRING
|
private String |
VERY_LONG_STRING
|
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
TestPersist(String name)
Construction |
Method Summary | |
private DatabaseDataStore |
_createDS()
|
private void |
_testDB_UseCase01()
Test the DS register. |
private void |
_testDB_UseCase02()
|
private void |
_testDB_UseCase03()
|
private void |
_testDB_UseCase04()
|
private void |
_testDB_UseCase101()
Test the DS register. |
private void |
_testDB_UseCase102()
Test the DS register. |
private void |
_testDB_UseCase103()
|
private Corpus |
createTestCorpus()
|
private Document |
createTestDocument()
|
static void |
main(String[] args)
|
private void |
prepareDB(String db)
|
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 |
testDelete()
Test LR deletion |
void |
testDSR()
Test the DS register. |
void |
testMultipleLrs()
Test multiple LRs |
void |
testOracle_01()
|
void |
testOracle_02()
|
void |
testOracle_03()
|
void |
testOracle_04()
|
void |
testOracle_101()
|
void |
testOracle_102()
|
void |
testOracle_103()
|
void |
testPostgres_01()
|
void |
testPostgres_02()
|
void |
testPostgres_03()
|
void |
testPostgres_04()
|
void |
testPostgres_101()
|
void |
testPostgres_102()
|
void |
testPostgres_103()
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static String JDBC_URL_1
private static String JDBC_URL_2
private static String JDBC_URL
private static final boolean DEBUG
private static Long sampleDoc_lrID
private static Long sampleCorpus_lrID
private static Corpus sampleCorpus
private static int dbType
private static AnnotationSet sample_defaultASet
private static String sample_name
private static FeatureMap sample_docFeatures
private static URL sample_sourceURL
private static Long sample_startOffset
private static Long sample_endOffset
private static Boolean sample_markupAware
private static DocumentContent sample_content
private static String sample_encoding
private static Map sample_namedASets
private static final String UNICODE_STRING
private static final String ASCII_STRING
private final String VERY_LONG_STRING
Constructor Detail |
public TestPersist(String name) throws GateException
Method Detail |
public void setUp() throws Exception
Exception
public void tearDown() throws Exception
Exception
public void testSaveRestore() throws Exception
Exception
public void testSimple() throws Exception
Exception
public void testMultipleLrs() throws Exception
Exception
public void testDelete() throws Exception
Exception
public void testDSR() throws Exception
Exception
public static junit.framework.Test suite()
private Document createTestDocument() throws Exception
Exception
private Corpus createTestCorpus() throws Exception
Exception
private DatabaseDataStore _createDS()
private void prepareDB(String db)
private void _testDB_UseCase01() throws Exception
Exception
private void _testDB_UseCase02() throws Exception
Exception
private void _testDB_UseCase03() throws Exception
Exception
private void _testDB_UseCase04() throws Exception
Exception
private void _testDB_UseCase101() throws Exception
Exception
private void _testDB_UseCase102() throws Exception
Exception
private void _testDB_UseCase103() throws Exception
Exception
public void testOracle_01() throws Exception
Exception
public void testOracle_02() throws Exception
Exception
public void testOracle_03() throws Exception
Exception
public void testOracle_04() throws Exception
Exception
public void testOracle_101() throws Exception
Exception
public void testOracle_102() throws Exception
Exception
public void testOracle_103() throws Exception
Exception
public void testPostgres_01() throws Exception
Exception
public void testPostgres_02() throws Exception
Exception
public void testPostgres_03() throws Exception
Exception
public void testPostgres_04() throws Exception
Exception
public void testPostgres_101() throws Exception
Exception
public void testPostgres_102() throws Exception
Exception
public void testPostgres_103() throws Exception
Exception
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |