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:
Carlos Sanchez Gonzalez 2007-06-04 22:26:34 +00:00
parent 9cb7e9af8c
commit d8890819ad
1 changed files with 3 additions and 1 deletions

View File

@ -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 );
}