Revision: 19626
          http://sourceforge.net/p/gate/code/19626
Author:   markagreenwood
Date:     2016-10-04 11:20:24 +0000 (Tue, 04 Oct 2016)
Log Message:
-----------
some code cleanup

Modified Paths:
--------------
    gate/branches/sawdust2/gate-core/src/test/java/gate/TestUtils.java
    gate/branches/sawdust2/gate-core/src/test/java/gate/creole/TestCreole.java
    gate/branches/sawdust2/gate-core/src/test/java/gate/creole/TestXSchema.java

Modified: gate/branches/sawdust2/gate-core/src/test/java/gate/TestUtils.java
===================================================================
--- gate/branches/sawdust2/gate-core/src/test/java/gate/TestUtils.java  
2016-10-04 11:10:55 UTC (rev 19625)
+++ gate/branches/sawdust2/gate-core/src/test/java/gate/TestUtils.java  
2016-10-04 11:20:24 UTC (rev 19626)
@@ -50,10 +50,13 @@
     // add 3 coextensive annotations on top of each other
     Annotation ann1_1 = set1.get(addAnn(set1,0,5,"t1.1",featureMap()));
     Annotation ann1_2 = set1.get(addAnn(set1,0,5,"t1.2",featureMap()));
+    @SuppressWarnings("unused")
     Annotation ann1_3 = set1.get(addAnn(set1,0,5,"t1.3",featureMap()));
     // add 3 overlapping annotations
     Annotation ann2_1 = set1.get(addAnn(set1,10,15,"t2.1",featureMap()));
+    @SuppressWarnings("unused")
     Annotation ann2_2 = set1.get(addAnn(set1,11,16,"t2.2",featureMap()));
+    @SuppressWarnings("unused")
     Annotation ann2_3 = set1.get(addAnn(set1,12,17,"t2.3",featureMap()));
     
     AnnotationSet ret = getCoextensiveAnnotations(set1,ann1_1);

Modified: 
gate/branches/sawdust2/gate-core/src/test/java/gate/creole/TestCreole.java
===================================================================
--- gate/branches/sawdust2/gate-core/src/test/java/gate/creole/TestCreole.java  
2016-10-04 11:10:55 UTC (rev 19625)
+++ gate/branches/sawdust2/gate-core/src/test/java/gate/creole/TestCreole.java  
2016-10-04 11:20:24 UTC (rev 19626)
@@ -32,6 +32,7 @@
 import gate.FeatureMap;
 import gate.Gate;
 import gate.LanguageResource;
+import gate.Plugin;
 import gate.ProcessingResource;
 import gate.Resource;
 import gate.corpora.TestDocument;
@@ -66,7 +67,7 @@
 
     // find a URL for finding test files and add to the directory set
     URL testUrl = new URL(TestDocument.getTestServerName()+"tests/");
-    reg.registerDirectories(testUrl);
+    reg.registerPlugin(new Plugin.Directory(testUrl));
     
     if(DEBUG) {
       Iterator<ResourceData> iter = reg.values().iterator();

Modified: 
gate/branches/sawdust2/gate-core/src/test/java/gate/creole/TestXSchema.java
===================================================================
--- gate/branches/sawdust2/gate-core/src/test/java/gate/creole/TestXSchema.java 
2016-10-04 11:10:55 UTC (rev 19625)
+++ gate/branches/sawdust2/gate-core/src/test/java/gate/creole/TestXSchema.java 
2016-10-04 11:20:24 UTC (rev 19626)
@@ -16,18 +16,15 @@
 
 package gate.creole;
 
+import java.io.ByteArrayInputStream;
+import java.net.URL;
+
 import gate.Factory;
 import gate.FeatureMap;
 import gate.Gate;
 import gate.corpora.TestDocument;
 import gate.util.Out;
-
-import java.io.ByteArrayInputStream;
-import java.net.URL;
-
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
 
 /** Annotation schemas test class.
   */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to