Skip to content

Commit

Permalink
[SUREFIRE-2077] Allow consecutive spaces in argLine (#527)
Browse files Browse the repository at this point in the history
* [SUREFIRE-2063] Allow consecutive spaces in argLine
  • Loading branch information
mthmulders authored May 25, 2022
1 parent 2cf4674 commit 535855a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private String interpolateArgLineWithPropertyExpressions()
@Nonnull
private static String stripWhitespace( @Nonnull String argLine )
{
return argLine.replaceAll( "\\s+", " " );
return argLine.replaceAll( "\\s", " " );
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ protected void resolveClasspath( @Nonnull Commandline cli,
DefaultForkConfiguration mockedConfig = spy( config );
String newArgLine = invokeMethod( mockedConfig, "newJvmArgLine", new Class[] { int.class }, 2 );
verifyPrivate( mockedConfig, times( 1 ) ).invoke( "interpolateArgLineWithPropertyExpressions" );
verifyPrivate( mockedConfig, times( 1 ) ).invoke( "extendJvmArgLine", eq( "a b" ) );
assertThat( newArgLine ).isEqualTo( "a b" );
verifyPrivate( mockedConfig, times( 1 ) ).invoke( "extendJvmArgLine", eq( "a b" ) );
assertThat( newArgLine ).isEqualTo( "a b" );
}

@Test
Expand Down

0 comments on commit 535855a

Please sign in to comment.