You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2017/07/06 07:22:13 UTC

commons-compress git commit: test fails when strong crypto is installed

Repository: commons-compress
Updated Branches:
  refs/heads/master 41afb1d76 -> d5c4ab74a


test fails when strong crypto is installed


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

Branch: refs/heads/master
Commit: d5c4ab74ac0c40787bd7194c353746c558b32ec0
Parents: 41afb1d
Author: Stefan Bodewig <bo...@apache.org>
Authored: Thu Jul 6 09:21:24 2017 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Thu Jul 6 09:21:24 2017 +0200

----------------------------------------------------------------------
 .../sevenz/AES256SHA256DecoderTest.java         | 28 +-------------------
 1 file changed, 1 insertion(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/d5c4ab74/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java b/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java
index 0671499..b3b68b1 100644
--- a/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java
@@ -38,32 +38,6 @@ public class AES256SHA256DecoderTest {
 
 
     @Test
-    public void testDecodeWithEmptyString() throws IOException {
-
-        AES256SHA256Decoder aES256SHA256Decoder = new AES256SHA256Decoder();
-        BufferedInputStream bufferedInputStream = new BufferedInputStream(null, 1801);
-        Coder coder = new Coder();
-        byte[] byteArray = new byte[2];
-        coder.properties = byteArray;
-        InputStream inputStream = aES256SHA256Decoder.decode("", bufferedInputStream, 1801, coder, byteArray);
-
-        assertArrayEquals(new byte[] {(byte)0, (byte)0}, byteArray);
-        assertNotNull(inputStream);
-
-        ObjectInputStream objectInputStream = null;
-
-        try {
-            objectInputStream = new ObjectInputStream(inputStream);
-            fail("Expecting exception: IOException");
-        } catch(Throwable e) {
-            assertEquals("Decryption error (do you have the JCE Unlimited Strength Jurisdiction Policy Files installed?)",e.getMessage());
-            assertEquals("org.apache.commons.compress.archivers.sevenz.AES256SHA256Decoder$1", e.getStackTrace()[0].getClassName());
-        }
-
-    }
-
-
-    @Test
     public void testDecodeWithNonEmptyString() throws IOException {
 
         AES256SHA256Decoder aES256SHA256Decoder = new AES256SHA256Decoder();
@@ -87,4 +61,4 @@ public class AES256SHA256DecoderTest {
     }
 
 
-}
\ No newline at end of file
+}