GATE
Version 3.1-2270

gate.jape
Class TestJape

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

public class TestJape
extends junit.framework.TestCase

Tests for the Corpus classes


Constructor Summary
TestJape(String name)
          Construction
 
Method Summary
 void _testCombined()
          Test using the large "combined" grammar from the gate/resources tree.
 void DoTestBigGrammar(String textName)
           
static void main(String[] args)
           
 void setUp()
          Fixture set up
static junit.framework.Test suite()
          Test suite routine for the test runner
 void testBatch()
          Batch run
 void testRhsErrorMessages()
          This test sets up a JAPE transducer based on a grammar (RhsError.jape) that will throw a null pointer exception.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestJape

public TestJape(String name)
Construction

Method Detail

setUp

public void setUp()
Fixture set up

Overrides:
setUp in class junit.framework.TestCase

_testCombined

public void _testCombined()
                   throws IOException,
                          GateException,
                          Exception
Test using the large "combined" grammar from the gate/resources tree.

Throws:
IOException
GateException
Exception

testBatch

public void testBatch()
               throws Exception
Batch run

Throws:
Exception

DoTestBigGrammar

public void DoTestBigGrammar(String textName)
                      throws GateException,
                             Exception
Throws:
GateException
Exception

testRhsErrorMessages

public void 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.


suite

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


main

public static void main(String[] args)

GATE
Version 3.1-2270