diff --git a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/ForkConfigurationTest.java b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/ForkConfigurationTest.java index b1db277c9e..2a56452318 100644 --- a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/ForkConfigurationTest.java +++ b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/ForkConfigurationTest.java @@ -175,6 +175,10 @@ public void testCliArgs() throws Exception } assertThat( endOfFileArg ).isPositive(); Path argFile = Paths.get( cliAsString.substring( beginOfFileArg + 1, endOfFileArg ) ); + System.out.println( "cliAsString: " + cliAsString ); + System.out.println( "beginOfFileArg: " + beginOfFileArg ); + System.out.println( "endOfFileArg: " + endOfFileArg ); + System.out.println( "argFile: " + argFile ); String argFileText = new String( readAllBytes( argFile ) ); assertThat( argFileText ) .contains( "arg2" ) @@ -283,7 +287,7 @@ public void testArglineWithNewline() new StartupConfiguration( "", cpConfig, clc, ALL, Collections.emptyList() ); Commandline commandLine = config.createCommandLine( startup, 1, temporaryFolder() ); - assertTrue( commandLine.toString().contains( "abc def" ) ); + assertThat( commandLine.toString() ).contains( "abc def" ); } @Test