Use text blocks with JUnit Jupiter 5.8.1
See gh-27450
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user