gate.jape.functest
Class TestJape

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gate.jape.functest.BaseJapeTests
              extended by gate.jape.functest.TestJape
All Implemented Interfaces:
junit.framework.Test

public class TestJape
extends BaseJapeTests

Tests for the Corpus classes


Nested Class Summary
 
Nested classes/interfaces inherited from class gate.jape.functest.BaseJapeTests
BaseJapeTests.AnnotationCreator, BaseJapeTests.BaseAnnotationCreator
 
Field Summary
 
Fields inherited from class gate.jape.functest.BaseJapeTests
DEFAULT_DATA_FILE, transducerType
 
Constructor Summary
TestJape(String name)
           
 
Method Summary
 void disabled_testRhsErrorMessages()
          This test sets up a JAPE transducer based on a grammar (RhsError.jape) that will throw a null pointer exception.
 void disabled_testRhsErrorMessages2()
          This test sets up a JAPE transducer based on a grammar (RhsError2.jape) that will throw a compiler error.
static void main(String... args)
           
static junit.framework.Test suite()
           
 void testAllMode()
           
 void testAppeltMode()
           
 void testApplicationModes()
          This test loads a saved application which runs several JAPE grammars using different application modes on a specially prepared document.
 void testBrill()
           
 void testSimple()
          Batch run
 
Methods inherited from class gate.jape.functest.BaseJapeTests
compareEndOffsets, compareResults, compareStartOffsets, doTest, doTest, doTest, setUpGate
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestJape

public TestJape(String name)
Method Detail

testSimple

public void testSimple()
                throws Exception
Batch run

Throws:
Exception

testApplicationModes

public void testApplicationModes()
                          throws PersistenceException,
                                 ResourceInstantiationException,
                                 IOException,
                                 ExecutionException
This test loads a saved application which runs several JAPE grammars using different application modes on a specially prepared document. The resulting annotations are checked against gold-standard versions saved in the test document.

Throws:
IOException
ResourceInstantiationException
PersistenceException
ExecutionException

disabled_testRhsErrorMessages

public void disabled_testRhsErrorMessages()
This test sets up a JAPE transducer based on a grammar (RhsError.jape) that will throw a null pointer exception. The test succeeds so long as we get that exception.


testBrill

public void testBrill()
               throws IOException,
                      GateException,
                      Exception
Throws:
IOException
GateException
Exception

testAppeltMode

public void testAppeltMode()
                    throws IOException,
                           GateException,
                           Exception
Throws:
IOException
GateException
Exception

testAllMode

public void testAllMode()
                 throws IOException,
                        GateException,
                        Exception
Throws:
IOException
GateException
Exception

disabled_testRhsErrorMessages2

public void disabled_testRhsErrorMessages2()
This test sets up a JAPE transducer based on a grammar (RhsError2.jape) that will throw a compiler error. The test succeeds so long as we get that exception.


suite

public static junit.framework.Test suite()

main

public static void main(String... args)