|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.ontotext.gate.gazetteer.TestHashGazetteer
public class TestHashGazetteer
Tests the HashGazetteer.
| Field Summary | |
|---|---|
private static String[] |
DESIRED_ANNOTATIONS
|
private static String |
GAZ_AS
|
| 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 |
|---|
private static final String GAZ_AS
private static String[] DESIRED_ANNOTATIONS
| Constructor Detail |
|---|
public TestHashGazetteer(String name)
| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class junit.framework.TestCaseException
public void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseException
public void testHashGazetteer()
throws Exception
Exceptionpublic static junit.framework.Test suite()
public static void main(String[] args)
private void dumpAnnotationSet(AnnotationSet marks)
marks - an annotation setprivate boolean EqualAnnotationSets(AnnotationSet marks)
marks - an annotation set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||