Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class CustomizeDisplayNameParameterizedTest {
/**
* Customizing Display Names
*/
@DisplayName("Customizing Display Name")
@ParameterizedTest(name = "{index} ==> name = ''{0}''")
@ValueSource(strings = {"Ryosuke", "Taro", "Hanako"})
void customizeDisplayName(String name) {
assertNotNull(name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment