From 87360187eac55eb7b173eb2434ab778a756390e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20Diga=C5=88a?= Date: Tue, 18 Jan 2022 17:15:20 +0100 Subject: [PATCH] investigating on *Nix --- .../plugin/surefire/booterclient/ForkConfigurationTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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