Skip to content

Commit 11a6acd

Browse files
committed
removed use of Assert
1 parent 1c03754 commit 11a6acd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/test/java/org/bouncycastle/crypto/test/CipherTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ static void checkCipher(final BlockCipher pCipher, final int datalen)
297297
myCipher.doFinal(plaintext, myOutLen);
298298

299299
/* Check that the cipherTexts are identical */
300-
Assert.assertArrayEquals(myOutput, myOutput2);
301-
Assert.assertArrayEquals(myData, plaintext);
300+
isTrue(areEqual(myOutput, myOutput2));
301+
isTrue(areEqual(myData, plaintext));
302302
}
303303

304304
static void checkAEADParemeter(SimpleTest test, int keySize, int ivSize, final int macSize, int blockSize, final AEADCipher cipher)
@@ -328,7 +328,7 @@ static void checkAEADParemeter(SimpleTest test, int keySize, int ivSize, final i
328328
byte[] ciphertext2 = new byte[cipher.getOutputSize(plaintext.length)];
329329
len = cipher.processBytes(plaintext, 0, plaintext.length, ciphertext2, 0);
330330
len += cipher.doFinal(ciphertext2, len);
331-
Assert.assertArrayEquals(ciphertext1, ciphertext2);
331+
isTrue(areEqual(ciphertext1, ciphertext2));
332332

333333
test.testException("Invalid value for MAC size: ", "IllegalArgumentException", new TestExceptionOperation()
334334
{

0 commit comments

Comments
 (0)