|
||||||||||
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.corpora.TestDocument
public class TestDocument
Tests for the Document classes
Field Summary | |
---|---|
protected String |
testDocument1
Name of test document 1 |
protected static String |
testServer
Base of the test server URL |
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 |
testDocRender()
|
void |
testExplicitMimeType()
Test to verify behaviour of the mimeType init parameter. |
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, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static String testServer
protected String testDocument1
Constructor Detail |
---|
public TestDocument(String name)
Method Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public static String getTestServerName()
public void testCompareTo() throws Exception
Exception
public void testOriginalContentPreserving() throws Exception
Exception
public void testLotsOfThings()
public void testDocRender() throws Exception
Exception
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 void testExplicitMimeType() throws Exception
Exception
public static junit.framework.Test suite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |