should fix issues with symlink on jenkins asf

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1134105 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-09 22:02:00 +00:00
parent d414ea7c20
commit f4de9682b8
2 changed files with 6 additions and 5 deletions

View File

@ -19,7 +19,6 @@
* under the License.
*/
import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
@ -60,8 +59,10 @@ public void testit()
assertEquals( "0", props.getProperty( "stringParams" ) );
assertEquals( "2", props.getProperty( "fileParams" ) );
assertEquals( new File( testDir, "foo" ), new File( props.getProperty( "fileParams.0" ) ) );
assertEquals( new File( testDir, "bar" ), new File( props.getProperty( "fileParams.1" ) ) );
assertEquals( new File( testDir, "foo" ).getCanonicalFile(),
new File( props.getProperty( "fileParams.0" ) ).getCanonicalFile() );
assertEquals( new File( testDir, "bar" ).getCanonicalFile(),
new File( props.getProperty( "fileParams.1" ) ).getCanonicalFile() );
assertEquals( "5", props.getProperty( "listParam" ) );
assertEquals( "", props.getProperty( "listParam.0", "" ) );

View File

@ -19,7 +19,6 @@
* under the License.
*/
import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
@ -54,7 +53,8 @@ public void testit()
verifier.resetStreams();
Properties props = verifier.loadProperties( "target/config.properties" );
assertEquals( new File( testDir, "src/main/java" ), new File( props.getProperty( "stringParams.0" ) ) );
assertEquals( new File( testDir, "src/main/java" ).getCanonicalFile(),
new File( props.getProperty( "stringParams.0" ) ).getCanonicalFile() );
}
}