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() {
258258
259259 assertThatExceptionOfType (ParameterResolutionException .class )//
260260 .isThrownBy (this ::resolveMethodParameters )//
261- .withMessageContaining (//
261+ .withMessageContainingAll (//
262262 "resolved a value of type [int[][]] for parameter [java.lang.String[]" , //
263263 "in method" , //
264264 "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()
854854 .isInstanceOf (DiscoveryIssueException .class ) //
855855 .hasMessageStartingWith (
856856 "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 ) );
858858 }
859859
860860 @ Test
@@ -877,7 +877,7 @@ void reportsEngineExecutionFailureForSelectorResolutionFailure() {
877877 .isInstanceOf (DiscoveryIssueException .class ) //
878878 .hasMessageStartingWith (
879879 "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 ) ) //
881881 .hasMessageContaining ("Cause: java.lang.RuntimeException: boom" );
882882 }
883883
You can’t perform that action at this time.
0 commit comments