gate.util
Class TestAnnotationMerging

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

public class TestAnnotationMerging
extends junit.framework.TestCase


Field Summary
(package private)  int caseN
          The id of test case.
 
Constructor Summary
TestAnnotationMerging(String name)
          Construction
 
Method Summary
private  void checkNumbers(int numAnns)
          Check the numbers.
private  Document loadDocument(String path, String name)
           
 void setUp()
          Fixture set up
static junit.framework.Test suite()
          Test suite routine for the test runner
 void tearDown()
          Put things back as they should be after running tests.
 void testAnnotationMerging()
          The test for AnnotationMerging.
 void testWithfeat(String nameAnnSets, String nameAnnType, String nameAnnFeat, Corpus data, boolean isUsingMajority)
          The actual method for testing.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

caseN

int caseN
The id of test case.

Constructor Detail

TestAnnotationMerging

public TestAnnotationMerging(String name)
Construction

Method Detail

setUp

public void setUp()
Fixture set up

Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
              throws Exception
Put things back as they should be after running tests.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

suite

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


loadDocument

private Document loadDocument(String path,
                              String name)
                       throws Exception
Throws:
Exception

testAnnotationMerging

public void testAnnotationMerging()
                           throws Exception
The test for AnnotationMerging.

Throws:
Exception

testWithfeat

public void testWithfeat(String nameAnnSets,
                         String nameAnnType,
                         String nameAnnFeat,
                         Corpus data,
                         boolean isUsingMajority)
The actual method for testing.


checkNumbers

private void checkNumbers(int numAnns)
Check the numbers.