Skip to content

Commit

Permalink
Cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Desoroxxx committed Aug 11, 2024
1 parent 3feddb7 commit f92f039
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/test/java/CaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -22,15 +23,15 @@ 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));
}

@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));
}
Expand Down

0 comments on commit f92f039

Please sign in to comment.