Skip to content

Commit 96ec3cd

Browse files
committed
Use existing static import
1 parent 8f8b694 commit 96ec3cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ void failsWithArgumentsSourceProvidingUnusedArguments() {
11291129
var results = execute(ArgumentCountValidationMode.STRICT, UnusedArgumentsTestCase.class,
11301130
"testWithTwoUnusedStringArgumentsProvider", String.class);
11311131
results.allEvents().assertThatEvents() //
1132-
.haveExactly(1, event(EventConditions.finishedWithFailure(message(String.format(
1132+
.haveExactly(1, event(finishedWithFailure(message(String.format(
11331133
"Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.%nNote: the provided arguments are [foo, unused1]")))));
11341134
}
11351135

@@ -1138,7 +1138,7 @@ void failsWithMethodSourceProvidingUnusedArguments() {
11381138
var results = execute(ArgumentCountValidationMode.STRICT, UnusedArgumentsTestCase.class,
11391139
"testWithMethodSourceProvidingUnusedArguments", String.class);
11401140
results.allEvents().assertThatEvents() //
1141-
.haveExactly(1, event(EventConditions.finishedWithFailure(message(String.format(
1141+
.haveExactly(1, event(finishedWithFailure(message(String.format(
11421142
"Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.%nNote: the provided arguments are [foo, unused1]")))));
11431143
}
11441144

@@ -1147,7 +1147,7 @@ void failsWithCsvSourceUnusedArgumentsAndStrictArgumentCountValidationAnnotation
11471147
var results = execute(ArgumentCountValidationMode.NONE, UnusedArgumentsTestCase.class,
11481148
"testWithStrictArgumentCountValidation", String.class);
11491149
results.allEvents().assertThatEvents() //
1150-
.haveExactly(1, event(EventConditions.finishedWithFailure(message(String.format(
1150+
.haveExactly(1, event(finishedWithFailure(message(String.format(
11511151
"Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.%nNote: the provided arguments are [foo, unused1]")))));
11521152
}
11531153

@@ -1156,7 +1156,7 @@ void failsWithCsvSourceUnusedArgumentsButExecutesRemainingArgumentsWhereThereIsN
11561156
var results = execute(ArgumentCountValidationMode.STRICT, UnusedArgumentsTestCase.class,
11571157
"testWithCsvSourceContainingDifferentNumbersOfArguments", String.class);
11581158
results.allEvents().assertThatEvents() //
1159-
.haveExactly(1, event(EventConditions.finishedWithFailure(message(String.format(
1159+
.haveExactly(1, event(finishedWithFailure(message(String.format(
11601160
"Configuration error: the @ParameterizedTest has 1 argument(s) but there were 2 argument(s) provided.%nNote: the provided arguments are [foo, unused1]"))))) //
11611161
.haveExactly(1,
11621162
event(test(), displayName("[2] argument=bar"), finishedWithFailure(message("bar"))));

0 commit comments

Comments
 (0)