diff --git a/core/src/test/java/CaseTest.java b/core/src/test/java/CaseTest.java index 6053445..387cf48 100644 --- a/core/src/test/java/CaseTest.java +++ b/core/src/test/java/CaseTest.java @@ -3,6 +3,7 @@ import org.junit.jupiter.params.provider.MethodSource; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; /** @@ -22,7 +23,7 @@ void testNull(final Case toTest) { @ParameterizedTest @MethodSource("CaseTestSource#caseEmptyInputProvider") void testEmpty(final Case toTest, final String input, final String expected) { - assertEquals(false, toTest.check(input)); + assertFalse(toTest.check(input)); assertEquals(expected, toTest.apply(input)); assertEquals(expected, toTest.enforce(input)); } @@ -30,7 +31,7 @@ void testEmpty(final Case toTest, final String input, final String expected) { @ParameterizedTest @MethodSource("CaseTestSource#caseSpecialInputProvider") void testSpecial(final Case toTest, final String input, final String expected) { - assertEquals(false, toTest.check(input)); + assertFalse(toTest.check(input)); assertEquals(expected, toTest.apply(input)); assertEquals(expected, toTest.enforce(input)); }