You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2016/04/09 02:42:38 UTC

commons-compress git commit: Simplify

Repository: commons-compress
Updated Branches:
  refs/heads/master 1935e3549 -> 999821c25


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/master
Commit: 999821c2549e641bd9c9a223be04497982eebaca
Parents: 1935e35
Author: Sebb <se...@apache.org>
Authored: Sat Apr 9 01:42:34 2016 +0100
Committer: Sebb <se...@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);
     }
 }