ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r896823 - /ant/core/trunk/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java
Date Thu, 07 Jan 2010 09:48:42 GMT
Author: bodewig
Date: Thu Jan  7 09:48:05 2010
New Revision: 896823

URL: http://svn.apache.org/viewvc?rev=896823&view=rev
Log:
additional testcase

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java   (contents, props
changed)

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java?rev=896823&r1=896822&r2=896823&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java Thu Jan  7 09:48:05
2010
@@ -195,4 +195,14 @@
         assertEquals(0x11, ze.getExternalAttributes()  & 0xFFFF);
     }
 
+    /**
+     * Test case for
+     * <a href="https://issues.apache.org/jira/browse/COMPRESS-94"
+     * >COMPRESS-94</a>.
+     */
+    public void testNotEquals() {
+        ZipEntry entry1 = new ZipEntry("foo");
+        ZipEntry entry2 = new ZipEntry("bar");
+        assertFalse(entry1.equals(entry2));
+    }
 }

Propchange: ant/core/trunk/src/tests/junit/org/apache/tools/zip/ZipEntryTest.java
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Jan  7 09:48:05 2010
@@ -1 +1,2 @@
+/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntryTest.java:896818
 /commons/sandbox/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntryTest.java:749603



Mime
View raw message