incubator-any23-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1304629 - /incubator/any23/trunk/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java
Date Fri, 23 Mar 2012 22:18:04 GMT
Author: simonetripodi
Date: Fri Mar 23 22:18:04 2012
New Revision: 1304629

URL: http://svn.apache.org/viewvc?rev=1304629&view=rev
Log:
imported static imports

Modified:
    incubator/any23/trunk/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java

Modified: incubator/any23/trunk/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java
URL: http://svn.apache.org/viewvc/incubator/any23/trunk/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java?rev=1304629&r1=1304628&r2=1304629&view=diff
==============================================================================
--- incubator/any23/trunk/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java
(original)
+++ incubator/any23/trunk/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java
Fri Mar 23 22:18:04 2012
@@ -17,10 +17,11 @@
 
 package org.apache.any23.cli;
 
+import static org.junit.Assert.*;
+
 import org.apache.any23.Any23OnlineTestBase;
 import org.apache.any23.rdf.RDFUtils;
 import org.apache.any23.util.FileUtils;
-import org.junit.Assert;
 import org.junit.Test;
 import org.openrdf.model.Statement;
 import org.openrdf.rio.RDFHandlerException;
@@ -75,7 +76,7 @@ public class CrawlerTest extends Any23On
                 e.printStackTrace();
             }
         }
-        Assert.assertTrue("The output file has not been created.", outFile.exists());
+        assertTrue("The output file has not been created.", outFile.exists());
 
         final String[] lines = FileUtils.readFileLines(outFile);
         final StringBuilder allLinesExceptLast = new StringBuilder();
@@ -84,7 +85,7 @@ public class CrawlerTest extends Any23On
         }
 
         final Statement[] statements = RDFUtils.parseRDF(RDFUtils.Parser.NQuads, allLinesExceptLast.toString());
-        Assert.assertTrue(statements.length > 0);
+        assertTrue(statements.length > 0);
     }
 
 }



Mime
View raw message