commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1152713 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportTest.java
Date Mon, 01 Aug 2011 09:33:27 GMT
Author: bodewig
Date: Mon Aug  1 09:33:26 2011
New Revision: 1152713

URL: http://svn.apache.org/viewvc?rev=1152713&view=rev
Log:
Unit tests for the 7ZIP and jar created archives I attached to COMPRESS-36.  The jar one currently
fails to set the entry's size correctly, this likely shows a bug/shortcoming of ZipArchiveInputStream,
will check.  COMPRESS-148

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/Zip64SupportTest.java

Modified: 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/Zip64SupportTest.java?rev=1152713&r1=1152712&r2=1152713&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/Zip64SupportTest.java
Mon Aug  1 09:33:26 2011
@@ -46,6 +46,16 @@ public class Zip64SupportTest {
         read5GBOfZerosImpl(get5GBZerosFile(), "5GB_of_Zeros");
     }
 
+    @Test public void read5GBOfZerosGeneratedBy7ZIPUsingInputStream()
+        throws Throwable {
+        read5GBOfZerosImpl(get5GBZerosFileGeneratedBy7ZIP(), "5GB_of_Zeros");
+    }
+
+    @Test public void read5GBOfZerosGeneratedByJava7JarUsingInputStream()
+        throws Throwable {
+        read5GBOfZerosImpl(get5GBZerosFileGeneratedByJava7Jar(), "5GB_of_Zeros");
+    }
+
     @Test public void read100KFilesUsingInputStream() throws Throwable {
         FileInputStream fin = new FileInputStream(get100KFileFile());
         ZipArchiveInputStream zin = null;
@@ -1299,6 +1309,14 @@ public class Zip64SupportTest {
         return getFile("/5GB_of_Zeros.zip");
     }
 
+    private static File get5GBZerosFileGeneratedBy7ZIP() throws Throwable {
+        return getFile("/5GB_of_Zeros_7ZIP.zip");
+    }
+
+    private static File get5GBZerosFileGeneratedByJava7Jar() throws Throwable {
+        return getFile("/5GB_of_Zeros_jar.zip");
+    }
+
     private static File get100KFileFile() throws Throwable {
         return getFile("/100k_Files.zip");
     }



Mime
View raw message