Created
November 20, 2021 04:57
-
-
Save weikangchia/ed43dcc902a9516169f1069cae6e4e82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ParameterizedTest | |
@CsvSource(value = {"M,21", "M, 31"}) | |
void Given_MaleGenderWithAgeGreaterThan20_When_Test_Then_ShouldReturnTrue(Gender genderEnumToTest, int ageToTest) { | |
assertEquals(Gender.M, genderEnumToTest); | |
assertThat(ageToTest).isGreaterThan(20); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment