|
||||||||||
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.corpora.TestDocument
Tests for the Document classes
Constructor Summary | |
TestDocument(String name)
Construction |
Method Summary | |
static String |
getTestServerName()
Get the name of the test server |
void |
setUp()
Fixture set up |
static junit.framework.Test |
suite()
Test suite routine for the test runner |
void |
testCompareTo()
Test ordering |
void |
testLotsOfThings()
A comprehensive test |
void |
testOriginalContentPreserving()
Test loading of the original document content |
static void |
verifyNodeIdConsistency(AnnotationSet annotSet,
Map offests2NodeId,
Document doc)
This metod runs the test over an annotation Set. |
static void |
verifyNodeIdConsistency(Document doc)
The reason this is method begins with verify and not with test is that it gets called by various other test methods. |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, name, run, run, runBare, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TestDocument(String name)
Method Detail |
public void setUp()
public static String getTestServerName()
public void testCompareTo() throws Exception
Exception
public void testOriginalContentPreserving() throws Exception
Exception
public void testLotsOfThings()
public static void verifyNodeIdConsistency(Document doc) throws Exception
Exception
public static void verifyNodeIdConsistency(AnnotationSet annotSet, Map offests2NodeId, Document doc) throws Exception
annotSet
- is the annotation set being tested.offests2NodeId
- is the Map used to test the consistency.doc
- is used in composing the assert error messsage.
Exception
public static junit.framework.Test suite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |