Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUREFIRE-2077] Allow consecutive spaces in argLine #527

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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