style: include UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NULL (#7225)

This commit is contained in:
Piotr Idzik
2026-01-20 22:02:10 +01:00
committed by GitHub
parent ba5ccbe0c7
commit 1b014a2ea4
4 changed files with 9 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
package com.thealgorithms.ciphers;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
@@ -121,8 +122,8 @@ class PermutationCipherTest {
String decrypted = cipher.decrypt(encrypted, key);
// then
assertEquals(null, encrypted);
assertEquals(null, decrypted);
assertNull(encrypted);
assertNull(decrypted);
}
@Test