ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1150119 - in /ant/antlibs/compress/trunk/src/tests: antunit/unzip-test.xml antunit/zipfileset-test.xml resources/password-encrypted.zip
Date Sat, 23 Jul 2011 15:06:40 GMT
Author: bodewig
Date: Sat Jul 23 15:06:39 2011
New Revision: 1150119

URL: http://svn.apache.org/viewvc?rev=1150119&view=rev
Log:
tests for current behaviour when an archive cannot be read by commons compress but commons
compress knows why

Added:
    ant/antlibs/compress/trunk/src/tests/resources/password-encrypted.zip
      - copied unchanged from r1150088, commons/proper/compress/trunk/src/test/resources/password-encrypted.zip
Modified:
    ant/antlibs/compress/trunk/src/tests/antunit/unzip-test.xml
    ant/antlibs/compress/trunk/src/tests/antunit/zipfileset-test.xml

Modified: ant/antlibs/compress/trunk/src/tests/antunit/unzip-test.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/compress/trunk/src/tests/antunit/unzip-test.xml?rev=1150119&r1=1150118&r2=1150119&view=diff
==============================================================================
--- ant/antlibs/compress/trunk/src/tests/antunit/unzip-test.xml (original)
+++ ant/antlibs/compress/trunk/src/tests/antunit/unzip-test.xml Sat Jul 23 15:06:39 2011
@@ -61,7 +61,7 @@
 
   <target name="testResourceCollection" depends="setUp">
     <zip destfile="${input}/test.zip">
-      <fileset dir="../resources" includes="*.zip"/>
+      <fileset dir="../resources" includes="*.zip" excludes="passwo*"/>
     </zip>
     <cmp:unzip dest="${output}">
       <zipfileset src="${input}/test.zip">
@@ -84,4 +84,11 @@
            dest="${output}"/>
     <au:assertFileExists file="${output}/foo/file"/>
   </target>
+
+  <target name="testFailsOnUnreadableEntries" depends="setUp">
+    <au:expectfailure message="unsupported feature encryption">
+      <cmp:unzip src="../resources/password-encrypted.zip"
+                 dest="${output}"/>
+    </au:expectfailure>
+  </target>
 </project>

Modified: ant/antlibs/compress/trunk/src/tests/antunit/zipfileset-test.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/compress/trunk/src/tests/antunit/zipfileset-test.xml?rev=1150119&r1=1150118&r2=1150119&view=diff
==============================================================================
--- ant/antlibs/compress/trunk/src/tests/antunit/zipfileset-test.xml (original)
+++ ant/antlibs/compress/trunk/src/tests/antunit/zipfileset-test.xml Sat Jul 23 15:06:39 2011
@@ -111,4 +111,12 @@
        expected="../resources/asf-logo.gif"
        />
   </target>
+
+  <target name="testFailsOnUnreadableEntries" depends="setUp">
+    <au:expectfailure message="unsupported feature encryption">
+      <copy todir="${output}">
+        <cmp:zipfileset src="../resources/password-encrypted.zip"/>
+      </copy>
+    </au:expectfailure>
+  </target>
 </project>



Mime
View raw message