gate.xml
Class TestXml

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gate.xml.TestXml
All Implemented Interfaces:
junit.framework.Test

public class TestXml
extends junit.framework.TestCase

Test class for XML facilities


Constructor Summary
TestXml(String name)
          Construction
 
Method Summary
 void setUp()
          Fixture set up
static junit.framework.Test suite()
          Test suite routine for the test runner
 void testAnnotationConsistencyForSaveAsXml()
           
 void testGateDocumentToAndFromXmlWithDifferentKindOfFormats()
           
 void testUnpackMarkup()
          A test
protected  void verifyAnnotationIDGenerator(Document aDoc)
          This method tests if the generator for new Annotation IDs is greather than the maximum Annotation ID present in the GATE document.
 
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
 

Constructor Detail

TestXml

public TestXml(String name)
Construction

Method Detail

setUp

public void setUp()
Fixture set up

Overrides:
setUp in class junit.framework.TestCase

testGateDocumentToAndFromXmlWithDifferentKindOfFormats

public void testGateDocumentToAndFromXmlWithDifferentKindOfFormats()
                                                            throws Exception
Throws:
Exception

testUnpackMarkup

public void testUnpackMarkup()
                      throws Exception
A test

Throws:
Exception

testAnnotationConsistencyForSaveAsXml

public void testAnnotationConsistencyForSaveAsXml()
                                           throws Exception
Throws:
Exception

verifyAnnotationIDGenerator

protected void verifyAnnotationIDGenerator(Document aDoc)
This method tests if the generator for new Annotation IDs is greather than the maximum Annotation ID present in the GATE document. In oter words, it ensures that new Annotations will receive an UNIQUE ID.

Parameters:
aDoc - The GATE document being tested

suite

public static junit.framework.Test suite()
Test suite routine for the test runner