commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject commons-compress git commit: COMPRESS-379 positive test
Date Mon, 16 Jan 2017 05:14:01 GMT
Repository: commons-compress
Updated Branches:
  refs/heads/master c59fc43c5 -> 742a3bfbb


COMPRESS-379 positive test


Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/742a3bfb
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/742a3bfb
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/742a3bfb

Branch: refs/heads/master
Commit: 742a3bfbb76f6f84140d684de92e9495475517e6
Parents: c59fc43
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Mon Jan 16 06:13:43 2017 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Mon Jan 16 06:13:43 2017 +0100

----------------------------------------------------------------------
 .../compress/archivers/zip/ZipArchiveEntryTest.java       | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/742a3bfb/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntryTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntryTest.java
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntryTest.java
index be003df..7bdf54c 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntryTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntryTest.java
@@ -280,4 +280,14 @@ public class ZipArchiveEntryTest {
             assertFalse(ze.isUnixSymlink());
         }
     }
+
+    @Test
+    public void testIsUnixSymlink() {
+        ZipArchiveEntry ze = new ZipArchiveEntry("foo");
+        ze.setUnixMode(UnixStat.LINK_FLAG);
+        assertTrue(ze.isUnixSymlink());
+        ze.setUnixMode(UnixStat.LINK_FLAG | UnixStat.DIR_FLAG);
+        assertFalse(ze.isUnixSymlink());
+    }
+
 }


Mime
View raw message