You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/06/06 23:33:03 UTC
[commons-crypto] 07/07: Add missing annotations.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git
commit 4cfe1717f7d53415e146e21ae28a3b0305d98679
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jun 6 19:29:37 2020 -0400
Add missing annotations.
---
src/test/java/org/apache/commons/crypto/cipher/OpenSslCipherTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/test/java/org/apache/commons/crypto/cipher/OpenSslCipherTest.java b/src/test/java/org/apache/commons/crypto/cipher/OpenSslCipherTest.java
index 279ff3a..b5fa094 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/OpenSslCipherTest.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/OpenSslCipherTest.java
@@ -113,6 +113,7 @@ public class OpenSslCipherTest extends AbstractCipherTest {
}
}
+ @Override
@Test(expected = InvalidKeyException.class, timeout = 120000)
public void testInvalidKey() throws Exception {
Assume.assumeTrue(OpenSsl.getLoadingFailureReason() == null);
@@ -125,6 +126,7 @@ public class OpenSslCipherTest extends AbstractCipherTest {
cipher.init(OpenSsl.ENCRYPT_MODE, invalidKey, new IvParameterSpec(IV));
}
+ @Override
@Test(expected = InvalidAlgorithmParameterException.class, timeout = 120000)
public void testInvalidIV() throws Exception {
Assume.assumeTrue(OpenSsl.getLoadingFailureReason() == null);
@@ -137,6 +139,7 @@ public class OpenSslCipherTest extends AbstractCipherTest {
cipher.init(OpenSsl.ENCRYPT_MODE, KEY, new IvParameterSpec(invalidIV));
}
+ @Override
@Test(expected = InvalidAlgorithmParameterException.class, timeout = 120000)
public void testInvalidIVClass() throws Exception {
final OpenSsl cipher = OpenSsl.getInstance("AES/CTR/NoPadding");