Revision: 19214
          http://sourceforge.net/p/gate/code/19214
Author:   markagreenwood
Date:     2016-04-09 06:35:21 +0000 (Sat, 09 Apr 2016)
Log Message:
-----------
put the test results into the HTML site for easier inspection

Modified Paths:
--------------
    gate/branches/sawdust2/plugins/ANNIE/pom.xml
    
gate/branches/sawdust2/plugins/ANNIE/src/test/java/com/ontotext/gate/gazetteer/TestHashGazetteer.java

Modified: gate/branches/sawdust2/plugins/ANNIE/pom.xml
===================================================================
--- gate/branches/sawdust2/plugins/ANNIE/pom.xml        2016-04-09 01:22:30 UTC 
(rev 19213)
+++ gate/branches/sawdust2/plugins/ANNIE/pom.xml        2016-04-09 06:35:21 UTC 
(rev 19214)
@@ -67,6 +67,10 @@
                                        <threshold>Low</threshold>
                                </configuration>
                        </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               
<artifactId>maven-surefire-report-plugin</artifactId>
+                       </plugin>
                </plugins>
        </reporting>
 

Modified: 
gate/branches/sawdust2/plugins/ANNIE/src/test/java/com/ontotext/gate/gazetteer/TestHashGazetteer.java
===================================================================
--- 
gate/branches/sawdust2/plugins/ANNIE/src/test/java/com/ontotext/gate/gazetteer/TestHashGazetteer.java
       2016-04-09 01:22:30 UTC (rev 19213)
+++ 
gate/branches/sawdust2/plugins/ANNIE/src/test/java/com/ontotext/gate/gazetteer/TestHashGazetteer.java
       2016-04-09 06:35:21 UTC (rev 19214)
@@ -27,10 +27,7 @@
 public class TestHashGazetteer extends TestCase {
 
   private static final String GAZ_AS = "GazetteerAS";
-  public TestHashGazetteer(String name) {
-    super(name);
-  }
-
+  
   /** Fixture set up */
   @Override
   public void setUp() throws Exception {
@@ -46,12 +43,8 @@
 
   /** Test the default tokeniser */
   public void testHashGazetteer() throws Exception {
-    //get a document
-       URL url = TestHashGazetteer.class.getResource("/tests/doc0.html");
-         
-       System.out.println(url);
-         
-    Document doc = Factory.newDocument(url);
+
+    Document doc = 
Factory.newDocument(this.getClass().getResource("/tests/doc0.html"));
     
     System.out.println(doc.getFeatures().get("gate.SourceURL"));
 
@@ -76,19 +69,8 @@
   } // testHashGazetteer();
 
   /** Test suite routine for the test runner */
-  public static Test suite() {
+  /*public static Test suite() {
     return new TestSuite(TestHashGazetteer.class);
-  } // suite
+  } // suite*/
 
-  public static void main(String[] args) {
-    try{
-      Gate.init();
-      TestHashGazetteer testGaz = new TestHashGazetteer("");
-      testGaz.setUp();
-      testGaz.testHashGazetteer();
-      testGaz.tearDown();
-    } catch(Exception e) {
-      e.printStackTrace();
-    }
-  } // main
 } // TestHashGazetteer

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


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to