commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [15/46] commons-compress git commit: Simplify
Date Sun, 10 Apr 2016 04:18:31 GMT
Simplify

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

Branch: refs/heads/COMPRESS-207
Commit: 999821c2549e641bd9c9a223be04497982eebaca
Parents: 1935e35
Author: Sebb <sebb@apache.org>
Authored: Sat Apr 9 01:42:34 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Sat Apr 9 01:42:34 2016 +0100

----------------------------------------------------------------------
 .../compress/archivers/zip/Maven221MultiVolumeTest.java     | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/999821c2/src/test/java/org/apache/commons/compress/archivers/zip/Maven221MultiVolumeTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/Maven221MultiVolumeTest.java
b/src/test/java/org/apache/commons/compress/archivers/zip/Maven221MultiVolumeTest.java
index 51910a6..3b3f78b 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/Maven221MultiVolumeTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/Maven221MultiVolumeTest.java
@@ -112,14 +112,9 @@ public class Maven221MultiVolumeTest {
         }
     }
 
-    @Test
+    @Test(expected=IOException.class)
     public void testRead7ZipMultiVolumeArchiveForFile() throws IOException {
         File file = getFile("apache-maven-2.2.1.zip.001");
-        try {
-            new ZipFile(file);
-            fail("Expected ZipFile to fail");
-        } catch (IOException ex) {
-            // expected
-        }
+        new ZipFile(file);
     }
 }


Mime
View raw message