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

@@ -155,24 +155,24 @@ class ClassUtilsTests {
}
@ParameterizedTest
@CsvSource({
"boolean, boolean",
"byte, byte",
"char, char",
"short, short",
"int, int",
"long, long",
"float, float",
"double, double",
"[Z, boolean[]",
"[B, byte[]",
"[C, char[]",
"[S, short[]",
"[I, int[]",
"[J, long[]",
"[F, float[]",
"[D, double[]"
})
@CsvSource(textBlock = """
boolean, boolean
byte, byte
char, char
short, short
int, int
long, long
float, float
double, double
[Z, boolean[]
[B, byte[]
[C, char[]
[S, short[]
[I, int[]
[J, long[]
[F, float[]
[D, double[]
""")
void resolvePrimitiveClassName(String input, Class<?> output) {
assertThat(ClassUtils.resolvePrimitiveClassName(input)).isEqualTo(output);
}