Revision: 17219
          http://sourceforge.net/p/gate/code/17219
Author:   ian_roberts
Date:     2014-01-07 17:26:00 +0000 (Tue, 07 Jan 2014)
Log Message:
-----------
Fixing up failing tests.

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/TestGazetteer.java

Added Paths:
-----------
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655

Removed Paths:
-------------
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1183924450832___4059
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1183924519166___3658
    
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1183924571389___4030

Modified: gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
===================================================================
--- gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java      
2014-01-07 17:00:00 UTC (rev 17218)
+++ gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java      
2014-01-07 17:26:00 UTC (rev 17219)
@@ -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 70.",
-      doc.getAnnotations(GAZ_AS).size()== 70);
+      " Lookup annotations, instead of the expected 72.",
+      doc.getAnnotations(GAZ_AS).size()== 72);
 
   } // testHashGazetteer();
 

Modified: gate/trunk/src/test/gate/creole/TestPR.java
===================================================================
--- gate/trunk/src/test/gate/creole/TestPR.java 2014-01-07 17:00:00 UTC (rev 
17218)
+++ gate/trunk/src/test/gate/creole/TestPR.java 2014-01-07 17:26:00 UTC (rev 
17219)
@@ -171,7 +171,7 @@
 //      
doc1.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size()== 60);
     assertEquals("Wrong number of annotations produced in " +
             doc1.getSourceUrl().getFile(),
-            57,
+            60,
             
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(),
-            127,
+            131,
             
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(),
-            139,
+            146,
             
doc3.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size());
   }//testGazetteer
 
@@ -325,8 +325,8 @@
     // assertions for doc 1
     assertTrue("Found in "+ doc1.getSourceUrl().getFile()+ " "+
       
doc1.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size() +
-      " Organization annotations, instead of the expected 26",
-      
doc1.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()== 
26);
+      " Organization annotations, instead of the expected 27",
+      
doc1.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()== 
27);
     assertTrue("Found in "+doc1.getSourceUrl().getFile()+ " "+
       
doc1.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size() +
       " Location annotations, instead of the expected 3",
@@ -347,8 +347,8 @@
     // assertions for doc 2
     assertTrue("Found in "+doc2.getSourceUrl().getFile()+ " "+
       
doc2.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size() +
-      " Organization annotations, instead of the expected 23",
-      
doc2.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()== 
24);
+      " Organization annotations, instead of the expected 25",
+      
doc2.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()== 
25);
     assertTrue("Found in "+doc2.getSourceUrl().getFile()+ " "+
       
doc2.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size() +
       " Location annotations, instead of the expected 11",
@@ -373,12 +373,12 @@
       
doc3.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()== 
32);
     assertTrue("Found in "+doc3.getSourceUrl().getFile()+ " "+
       
doc3.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size() +
-      " Location annotations, instead of the expected 11",
-      
doc3.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size()== 11);
+      " Location annotations, instead of the expected 12",
+      
doc3.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size()== 12);
     assertTrue("Found in "+doc3.getSourceUrl().getFile()+ " "+
       doc3.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size() +
-      " Person annotations, instead of the expected 8",
-      
doc3.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size()== 8);
+      " Person annotations, instead of the expected 7",
+      
doc3.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size()== 7);
     assertTrue("Found in "+doc3.getSourceUrl().getFile()+ " "+
       doc3.getAnnotations().get(ANNIEConstants.DATE_ANNOTATION_TYPE).size() +
       " Date annotations, instead of the expected 7",
@@ -388,7 +388,7 @@
       " Money annotations, instead of the expected 4",
       doc3.getAnnotations().get(ANNIEConstants.MONEY_ANNOTATION_TYPE).size()== 
4);
 
-    assertEquals("Wrong number of Person annotations in OrthoMatcher test 
document",22,
+    assertEquals("Wrong number of Person annotations in OrthoMatcher test 
document",21,
             
doc4.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size());
   }//testTransducer
 

Modified: gate/trunk/src/test/gate/creole/gazetteer/TestGazetteer.java
===================================================================
--- gate/trunk/src/test/gate/creole/gazetteer/TestGazetteer.java        
2014-01-07 17:00:00 UTC (rev 17218)
+++ gate/trunk/src/test/gate/creole/gazetteer/TestGazetteer.java        
2014-01-07 17:26:00 UTC (rev 17219)
@@ -54,13 +54,13 @@
     gaz.execute();
     AnnotationSet resultAS = doc.getAnnotations("GazetteerAS");
     assertTrue("Found " + resultAS.size() + 
-            " annotations instead of the expected 53!", resultAS.size() == 53);
+            " annotations instead of the expected 55!", resultAS.size() == 55);
     resultAS.clear();
     
     //test with partial words
     gaz.setWholeWordsOnly(false);
     gaz.execute();
-    assertEquals("Wrong number of annotations produced", 135, resultAS.size());
+    assertEquals("Wrong number of annotations produced", 137, resultAS.size());
     gaz.setWholeWordsOnly(true);
     resultAS.clear();
 
@@ -68,7 +68,7 @@
     gaz.setLongestMatchOnly(false);
     gaz.execute();
     assertTrue("Found " + resultAS.size() + 
-            " annotations instead of the expected 68!", resultAS.size() == 68);
+            " annotations instead of the expected 70!", resultAS.size() == 70);
     gaz.setLongestMatchOnly(true);
     resultAS.clear();
     Factory.deleteResource(gaz);
@@ -81,7 +81,7 @@
     gaz.setDocument(doc);
     gaz.setAnnotationSetName("GazetteerAS");
     gaz.execute();
-    assertEquals("Wrong number of annotations generated", 96, resultAS.size());
+    assertEquals("Wrong number of annotations generated", 102, 
resultAS.size());
     gaz.setCaseSensitive(true);
     resultAS.clear();
     Factory.deleteResource(gaz);

Deleted: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1183924450832___4059
===================================================================
(Binary files differ)

Added: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
===================================================================
(Binary files differ)

Index: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
===================================================================
--- 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
   2014-01-07 17:00:00 UTC (rev 17218)
+++ 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
   2014-01-07 17:26:00 UTC (rev 17219)

Property changes on: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/x-gzip
\ No newline at end of property
Deleted: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1183924519166___3658
===================================================================
(Binary files differ)

Added: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
===================================================================
(Binary files differ)

Index: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
===================================================================
--- 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
       2014-01-07 17:00:00 UTC (rev 17218)
+++ 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
       2014-01-07 17:26:00 UTC (rev 17219)

Property changes on: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/x-gzip
\ No newline at end of property
Deleted: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1183924571389___4030
===================================================================
(Binary files differ)

Added: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655
===================================================================
(Binary files differ)

Index: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655
===================================================================
--- 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655
       2014-01-07 17:00:00 UTC (rev 17218)
+++ 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655
       2014-01-07 17:26:00 UTC (rev 17219)

Property changes on: 
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/x-gzip
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to