Revision: 17353
http://sourceforge.net/p/gate/code/17353
Author: markagreenwood
Date: 2014-02-19 18:28:51 +0000 (Wed, 19 Feb 2014)
Log Message:
-----------
right, I think that's the last of the gazetteer tests fixed up
Modified Paths:
--------------
gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
gate/trunk/src/test/gate/creole/TestPR.java
gate/trunk/src/test/gate/creole/gazetteer/TestFlexibleGazetteer.java
Modified: gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
===================================================================
--- gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
2014-02-19 18:21:26 UTC (rev 17352)
+++ gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
2014-02-19 18:28:51 UTC (rev 17353)
@@ -68,8 +68,8 @@
//check whether the annotations are as expected
assertTrue("Found in "+ doc.getSourceUrl().getFile()+ " "+
doc.getAnnotations(GAZ_AS).size() +
- " Lookup annotations, instead of the expected 72.",
- doc.getAnnotations(GAZ_AS).size()== 72);
+ " Lookup annotations, instead of the expected 71.",
+ doc.getAnnotations(GAZ_AS).size()== 71);
} // testHashGazetteer();
Modified: gate/trunk/src/test/gate/creole/TestPR.java
===================================================================
--- gate/trunk/src/test/gate/creole/TestPR.java 2014-02-19 18:21:26 UTC (rev
17352)
+++ gate/trunk/src/test/gate/creole/TestPR.java 2014-02-19 18:28:51 UTC (rev
17353)
@@ -171,7 +171,7 @@
//
doc1.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size()== 60);
assertEquals("Wrong number of annotations produced in " +
doc1.getSourceUrl().getFile(),
- 60,
+ 61,
doc1.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size());
// assertTrue("Found in "+ doc2.getSourceUrl().getFile()+ " "+
@@ -180,7 +180,7 @@
//
doc2.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size()== 134);
assertEquals("Wrong number of annotations produced in " +
doc2.getSourceUrl().getFile(),
- 131,
+ 126,
doc2.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size());
// assertTrue("Found in "+ doc3.getSourceUrl().getFile()+ " "+
@@ -189,7 +189,7 @@
//
doc3.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size()== 144);
assertEquals("Wrong number of annotations produced in " +
doc3.getSourceUrl().getFile(),
- 146,
+ 140,
doc3.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size());
}//testGazetteer
Modified: gate/trunk/src/test/gate/creole/gazetteer/TestFlexibleGazetteer.java
===================================================================
--- gate/trunk/src/test/gate/creole/gazetteer/TestFlexibleGazetteer.java
2014-02-19 18:21:26 UTC (rev 17352)
+++ gate/trunk/src/test/gate/creole/gazetteer/TestFlexibleGazetteer.java
2014-02-19 18:28:51 UTC (rev 17353)
@@ -122,7 +122,7 @@
System.out.println("There are this many lookup annotations: "+
lookups.size());
}
- assertTrue(lookups.size()== 28);
+ assertTrue("found " + lookups.size()+" was expecting 29",lookups.size()==
29);
// Now clean up so we don't get a memory leak.
Factory.deleteResource(doc);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs