Remove remaining junit code
This commit is contained in:
+3
-3
@@ -21,8 +21,8 @@ import java.security.NoSuchAlgorithmException;
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.NoSuchPaddingException;
|
||||
|
||||
import org.junit.AssumptionViolatedException;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.opentest4j.TestAbortedException;
|
||||
|
||||
import org.springframework.security.crypto.encrypt.AesBytesEncryptor.CipherAlgorithm;
|
||||
|
||||
@@ -46,10 +46,10 @@ public final class CryptoAssumptions {
|
||||
aes256Available = Cipher.getMaxAllowedKeyLength("AES") >= 256;
|
||||
}
|
||||
catch (NoSuchAlgorithmException ex) {
|
||||
throw new AssumptionViolatedException(cipherAlgorithm + " not available, skipping test", ex);
|
||||
throw new TestAbortedException(cipherAlgorithm + " not available, skipping test", ex);
|
||||
}
|
||||
catch (NoSuchPaddingException ex) {
|
||||
throw new AssumptionViolatedException(cipherAlgorithm + " padding not available, skipping test", ex);
|
||||
throw new TestAbortedException(cipherAlgorithm + " padding not available, skipping test", ex);
|
||||
}
|
||||
Assumptions.assumeTrue(aes256Available, "AES key length of 256 not allowed, skipping test");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user