Use text blocks with JUnit Jupiter 5.8.1

See gh-27450
This commit is contained in:
Sam Brannen
2021-09-28 14:20:31 +02:00
parent 6337e08f2b
commit 08bce08018
4 changed files with 86 additions and 86 deletions

View File

@@ -37,11 +37,11 @@ class IntegerToEnumConverterFactoryTests {
@ParameterizedTest
@CsvSource({
"0, RED",
"1, BLUE",
"2, GREEN"
})
@CsvSource(textBlock = """
0, RED
1, BLUE
2, GREEN
""")
void convertsIntegerToEnum(int index, Color color) {
assertThat(converter.convert(index)).isEqualTo(color);
}