com.ontotext.gate.gazetteer
Class TestHashGazetteer

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.ontotext.gate.gazetteer.TestHashGazetteer
All Implemented Interfaces:
junit.framework.Test

public class TestHashGazetteer
extends junit.framework.TestCase

Tests the HashGazetteer.


Field Summary
private static String[] DESIRED_ANNOTATIONS
           
private static String GAZ_AS
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestHashGazetteer(String name)
           
 
Method Summary
private  void dumpAnnotationSet(AnnotationSet marks)
          dumps the annotation set to system ouput
private  boolean EqualAnnotationSets(AnnotationSet marks)
          Tests whether the annotation set has the same elements as statet in DESIRED_ANNOTATIONS
static void main(String[] args)
           
 void setUp()
          Fixture set up
static junit.framework.Test suite()
          Test suite routine for the test runner
 void tearDown()
           
 void testHashGazetteer()
          Test the default tokeniser
 
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

GAZ_AS

private static final String GAZ_AS
See Also:
Constant Field Values

DESIRED_ANNOTATIONS

private static String[] DESIRED_ANNOTATIONS
Constructor Detail

TestHashGazetteer

public TestHashGazetteer(String name)
Method Detail

setUp

public void setUp()
           throws Exception
Fixture set up

Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

testHashGazetteer

public void testHashGazetteer()
                       throws Exception
Test the default tokeniser

Throws:
Exception

suite

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


main

public static void main(String[] args)

dumpAnnotationSet

private void dumpAnnotationSet(AnnotationSet marks)
dumps the annotation set to system ouput

Parameters:
marks - an annotation set

EqualAnnotationSets

private boolean EqualAnnotationSets(AnnotationSet marks)
Tests whether the annotation set has the same elements as statet in DESIRED_ANNOTATIONS

Parameters:
marks - an annotation set
Returns:
true if they match, false otherwise.