Repository: commons-crypto
Updated Branches:
  refs/heads/master 81c680626 -> 1f6e1c3e2


The declared exception is not actually thrown.

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

Branch: refs/heads/master
Commit: 1f6e1c3e23001e9cd159a10c80704e9daa85735e
Parents: 81c6806
Author: ggregory <ggreg...@apache.org>
Authored: Tue Jun 21 16:23:01 2016 -0700
Committer: ggregory <ggreg...@apache.org>
Committed: Tue Jun 21 16:23:01 2016 -0700

----------------------------------------------------------------------
 .../org/apache/commons/crypto/cipher/AbstractCipherTest.java   | 6 +++---
 .../commons/crypto/stream/PositionedCryptoInputStreamTest.java | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/1f6e1c3e/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java 
b/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
index 857d681..4fb7a8e 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
@@ -17,12 +17,12 @@
  */
 package org.apache.commons.crypto.cipher;
 
-import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.security.GeneralSecurityException;
 import java.security.SecureRandom;
 import java.util.Properties;
 import java.util.Random;
+
 import javax.crypto.Cipher;
 import javax.crypto.spec.IvParameterSpec;
 import javax.crypto.spec.SecretKeySpec;
@@ -64,7 +64,7 @@ public abstract class AbstractCipherTest {
     protected abstract void init();
 
     @Test
-    public void cryptoTest() throws GeneralSecurityException, IOException {
+    public void cryptoTest() throws GeneralSecurityException {
         for (CipherTransformation tran : transformations) {
             /** uses the small data set in {@link TestData} */
             cipherTests = TestData.getTestData(tran);
@@ -99,7 +99,7 @@ public abstract class AbstractCipherTest {
 
     private void byteBufferTest(CipherTransformation transformation,
             byte[] key, byte[] iv, ByteBuffer input, ByteBuffer output)
-            throws GeneralSecurityException, IOException {
+            throws GeneralSecurityException {
         ByteBuffer decResult = ByteBuffer.allocateDirect(BYTEBUFFER_SIZE);
         ByteBuffer encResult = ByteBuffer.allocateDirect(BYTEBUFFER_SIZE);
         CryptoCipher enc, dec;

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/1f6e1c3e/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
 
b/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
index 1781796..7f6bf4e 100644
--- 
a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
@@ -87,7 +87,7 @@ public class PositionedCryptoInputStreamTest {
         encData = baos.toByteArray();
     }
 
-    public void setUp() throws IOException {
+    public void setUp() {
     }
 
     private PositionedCryptoInputStream getCryptoInputStream(

Reply via email to