Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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