mirror of https://github.com/apache/maven.git
Fix path separator for failing test on windows
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@544314 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9cb7e9af8c
commit
d8890819ad
|
@ -57,6 +57,8 @@ import java.util.Properties;
|
|||
public class PluginParameterExpressionEvaluatorTest
|
||||
extends PlexusTestCase
|
||||
{
|
||||
private static final String FS = System.getProperty( "file.separator" );
|
||||
|
||||
public void testValueExtractionWithAPomValueContainingAPath()
|
||||
throws Exception
|
||||
{
|
||||
|
@ -254,7 +256,7 @@ public class PluginParameterExpressionEvaluatorTest
|
|||
ExpressionEvaluator expressionEvaluator =
|
||||
createExpressionEvaluator( new MavenProject( model ), null, new Properties() );
|
||||
|
||||
Object value = expressionEvaluator.evaluate( "${project.build.directory}/${project.build.finalName}" );
|
||||
Object value = expressionEvaluator.evaluate( "${project.build.directory}" + FS + "${project.build.finalName}" );
|
||||
|
||||
assertEquals( new File( "expected-directory/expected-finalName" ).getCanonicalPath(), value );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue