File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
jupiter-tests/src/test/java/org/junit/jupiter/engine/execution
platform-tests/src/test/java/org/junit/platform/launcher/core Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ void reportTypeMismatchBetweenParameterAndResolvedParameterWithArrayTypes() {
258
258
259
259
assertThatExceptionOfType (ParameterResolutionException .class )//
260
260
.isThrownBy (this ::resolveMethodParameters )//
261
- .withMessageContaining (//
261
+ .withMessageContainingAll (//
262
262
"resolved a value of type [int[][]] for parameter [java.lang.String[]" , //
263
263
"in method" , //
264
264
"but a value assignment compatible with [java.lang.String[]] is required." //
Original file line number Diff line number Diff line change @@ -854,7 +854,7 @@ void reportsEngineExecutionFailureOnUnresolvedUniqueIdSelectorWithEnginePrefix()
854
854
.isInstanceOf (DiscoveryIssueException .class ) //
855
855
.hasMessageStartingWith (
856
856
"TestEngine with ID 'some-engine' encountered a critical issue during test discovery" ) //
857
- .hasMessageContaining ("(1) [ERROR] %s could not be resolved" , selector );
857
+ .hasMessageContaining ("(1) [ERROR] %s could not be resolved" . formatted ( selector ) );
858
858
}
859
859
860
860
@ Test
@@ -877,7 +877,7 @@ void reportsEngineExecutionFailureForSelectorResolutionFailure() {
877
877
.isInstanceOf (DiscoveryIssueException .class ) //
878
878
.hasMessageStartingWith (
879
879
"TestEngine with ID 'some-engine' encountered a critical issue during test discovery" ) //
880
- .hasMessageContaining ("(1) [ERROR] %s resolution failed" , selector ) //
880
+ .hasMessageContaining ("(1) [ERROR] %s resolution failed" . formatted ( selector ) ) //
881
881
.hasMessageContaining ("Cause: java.lang.RuntimeException: boom" );
882
882
}
883
883
You can’t perform that action at this time.
0 commit comments