Created
July 14, 2022 22:21
-
-
Save beyondxscratch/73abcd86bf1dc95b21cbe381db82653c 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 | |
@MethodSource("somePeople") | |
void a_test_with_method_source(String name, int age, Month birthMonth) { | |
// ... | |
} | |
private static Stream<Arguments> somePeople() { | |
return Stream.of( | |
Arguments.of("Alice", 25, JUNE), | |
Arguments.of("Bob", 32, AUGUST) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment