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:
@@ -14,13 +14,13 @@ public class ParseIntegerTest {
|
||||
@Test
|
||||
public void testNullInput() {
|
||||
IllegalArgumentException exception = Assertions.assertThrows(IllegalArgumentException.class, () -> ParseInteger.parseInt(null));
|
||||
Assertions.assertEquals(exception.getMessage(), NULL_PARAMETER_MESSAGE);
|
||||
Assertions.assertEquals(NULL_PARAMETER_MESSAGE, exception.getMessage());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmptyInput() {
|
||||
IllegalArgumentException exception = Assertions.assertThrows(IllegalArgumentException.class, () -> ParseInteger.parseInt(""));
|
||||
Assertions.assertEquals(exception.getMessage(), EMPTY_PARAMETER_MESSAGE);
|
||||
Assertions.assertEquals(EMPTY_PARAMETER_MESSAGE, exception.getMessage());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user