Skip to content

Commit edd9f46

Browse files
committed
fix newline char assertion for Windows
Issue #3708
1 parent 5c71632 commit edd9f46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupiter-tests/src/test/java/org/junit/jupiter/params/ParameterizedTestIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ void failsWithArgumentsSourceProvidingUnusedArguments() {
11211121
"testWithTwoUnusedStringArgumentsProvider", String.class);
11221122
results.allEvents().assertThatEvents() //
11231123
.haveExactly(1, event(EventConditions.finishedWithFailure(message(
1124-
"Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.\nNote: the provided arguments are [foo, unused1]"))));
1124+
String.format("Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.%nNote: the provided arguments are [foo, unused1]")))));
11251125
}
11261126

11271127
@Test
@@ -1130,7 +1130,7 @@ void failsWithMethodSourceProvidingUnusedArguments() {
11301130
"testWithMethodSourceProvidingUnusedArguments", String.class);
11311131
results.allEvents().assertThatEvents() //
11321132
.haveExactly(1, event(EventConditions.finishedWithFailure(message(
1133-
"Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.\nNote: the provided arguments are [foo, unused1]"))));
1133+
String.format("Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.%nNote: the provided arguments are [foo, unused1]")))));
11341134
}
11351135

11361136
@Test
@@ -1139,7 +1139,7 @@ void failsWithCsvSourceUnusedArgumentsAndStrictArgumentCountValidationAnnotation
11391139
"testWithStrictArgumentCountValidation", String.class);
11401140
results.allEvents().assertThatEvents() //
11411141
.haveExactly(1, event(EventConditions.finishedWithFailure(message(
1142-
"Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.\nNote: the provided arguments are [foo, unused1]"))));
1142+
String.format("Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.%nNote: the provided arguments are [foo, unused1]")))));
11431143
}
11441144

11451145
@Test

0 commit comments

Comments
 (0)