incubator-any23-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1304609 - /incubator/any23/trunk/plugins/integration-test/src/test/java/org/apache/any23/plugin/PluginIT.java
Date Fri, 23 Mar 2012 21:25:32 GMT
Author: simonetripodi
Date: Fri Mar 23 21:25:32 2012
New Revision: 1304609

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

Modified:
    incubator/any23/trunk/plugins/integration-test/src/test/java/org/apache/any23/plugin/PluginIT.java

Modified: incubator/any23/trunk/plugins/integration-test/src/test/java/org/apache/any23/plugin/PluginIT.java
URL: http://svn.apache.org/viewvc/incubator/any23/trunk/plugins/integration-test/src/test/java/org/apache/any23/plugin/PluginIT.java?rev=1304609&r1=1304608&r2=1304609&view=diff
==============================================================================
--- incubator/any23/trunk/plugins/integration-test/src/test/java/org/apache/any23/plugin/PluginIT.java
(original)
+++ incubator/any23/trunk/plugins/integration-test/src/test/java/org/apache/any23/plugin/PluginIT.java
Fri Mar 23 21:25:32 2012
@@ -17,11 +17,12 @@
 
 package org.apache.any23.plugin;
 
+import static org.junit.Assert.*;
+
 import org.apache.any23.cli.Crawler;
 import org.apache.any23.cli.Tool;
 import org.apache.any23.extractor.ExtractorGroup;
 import org.junit.After;
-import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -74,9 +75,8 @@ public class PluginIT {
                 OFFICE_SCRAPER_TARGET_DIR,
                 OFFICE_SCRAPER_DEPENDENCY_DIR // Required to satisfy class dependencies.
         );
-        Assert.assertEquals(
-                NUM_OF_EXTRACTORS + 2,        // HTMLScraper Plugin, OfficeScraper Plugin.
-                extractorGroup.getNumOfExtractors()
+        assertEquals( NUM_OF_EXTRACTORS + 2,        // HTMLScraper Plugin, OfficeScraper
Plugin.
+                      extractorGroup.getNumOfExtractors()
         );
     }
 
@@ -92,11 +92,11 @@ public class PluginIT {
         Tool tool;
         while(tools.hasNext()) {
             tool = tools.next();
-            Assert.assertTrue("Found duplicate tool.", toolClasses.add(tool.getClass().getName()));
+            assertTrue("Found duplicate tool.", toolClasses.add(tool.getClass().getName()));
         }
-        Assert.assertTrue( "Expected " + Crawler.class.getName() + " plugin be detected,
but not found int the built classpath",
-                           toolClasses.contains( Crawler.class.getName() ) );
-        Assert.assertEquals(7 + 1, toolClasses.size());
+        assertTrue( "Expected " + Crawler.class.getName() + " plugin be detected, but not
found int the built classpath",
+                    toolClasses.contains( Crawler.class.getName() ) );
+        assertEquals(7 + 1, toolClasses.size());
     }
 
 }



Mime
View raw message