commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1156963 - in /commons/proper/compress/trunk: pom.xml src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportIT.java src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportTest.java
Date Fri, 12 Aug 2011 04:36:19 GMT
Author: bodewig
Date: Fri Aug 12 04:36:19 2011
New Revision: 1156963

URL: http://svn.apache.org/viewvc?rev=1156963&view=rev
Log:
Move ZIP64 (integration) tests to a separate run-it profile as suggested by Mark Struberg

Added:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportIT.java
      - copied, changed from r1156962, commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportTest.java
Removed:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportTest.java
Modified:
    commons/proper/compress/trunk/pom.xml

Modified: commons/proper/compress/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/pom.xml?rev=1156963&r1=1156962&r2=1156963&view=diff
==============================================================================
--- commons/proper/compress/trunk/pom.xml (original)
+++ commons/proper/compress/trunk/pom.xml Fri Aug 12 04:36:19 2011
@@ -279,6 +279,23 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>run-it</id>
+      <!-- Add long running tests as **/*IT.java -->
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <includes>
+                <include>**/*Test.java</include>
+                <include>**/*IT.java</include>
+              </includes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
 </project>

Copied: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportIT.java
(from r1156962, commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportTest.java)
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportIT.java?p2=commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportIT.java&p1=commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportTest.java&r1=1156962&r2=1156963&rev=1156963&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportTest.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportIT.java
Fri Aug 12 04:36:19 2011
@@ -42,8 +42,7 @@ import static org.junit.Assert.fail;
 import static org.junit.Assume.assumeNotNull;
 import static org.junit.Assume.assumeTrue;
 
-@Ignore
-public class Zip64SupportTest {
+public class Zip64SupportIT {
 
     private static final long FIVE_BILLION = 5000000000l;
     private static final int ONE_MILLION = 1000000;
@@ -2256,7 +2255,7 @@ public class Zip64SupportTest {
     }
 
     private static File getFile(String name) throws Throwable {
-        URL url = Zip64SupportTest.class.getResource(name);
+        URL url = Zip64SupportIT.class.getResource(name);
         assumeNotNull(url);
         File file = new File(new URI(url.toString()));
         assumeTrue(file.exists());



Mime
View raw message