You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/11/09 23:59:50 UTC
svn commit: r834271 -
/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java
Author: bentmann
Date: Mon Nov 9 22:59:50 2009
New Revision: 834271
URL: http://svn.apache.org/viewvc?rev=834271&view=rev
Log:
o Fixed IT to respect file comparison rules of underlying OS
Modified:
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java
Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java?rev=834271&r1=834270&r2=834271&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java Mon Nov 9 22:59:50 2009
@@ -70,9 +70,9 @@
verifier.assertFilePresent( "target/path.properties" );
Properties props = verifier.loadProperties( "target/path.properties" );
- assertEquals( new File( testDir, "tmp" ).getAbsolutePath(), props.getProperty( "fileParams.0" ) );
- assertEquals( new File( getRoot( testDir ), "tmp" ).getAbsolutePath(), props.getProperty( "fileParams.1" ) );
- assertEquals( repoDir, props.getProperty( "stringParams.0" ) );
+ assertEquals( new File( testDir, "tmp" ).getAbsoluteFile(), new File( props.getProperty( "fileParams.0" ) ) );
+ assertEquals( new File( getRoot( testDir ), "tmp" ).getAbsoluteFile(), new File( props.getProperty( "fileParams.1" ) ) );
+ assertEquals( new File( repoDir ), new File( props.getProperty( "stringParams.0" ) ) );
}
private static File getRoot( File path )