mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: include UTAO_JUNIT_ASSERTION_ODDITIES_ACTUAL_CONSTANT (#7239)
This commit is contained in:
@@ -25,6 +25,6 @@ public class PalindromeNumberTest {
|
||||
@Test
|
||||
public void testIfNegativeInputThenExceptionExpected() {
|
||||
IllegalArgumentException exception = Assertions.assertThrows(IllegalArgumentException.class, () -> PalindromeNumber.isPalindrome(-1));
|
||||
Assertions.assertEquals(exception.getMessage(), "Input parameter must not be negative!");
|
||||
Assertions.assertEquals("Input parameter must not be negative!", exception.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user