mirror of
https://github.com/apache/maven.git
synced 2025-02-21 01:15:42 +00:00
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:
parent
d414ea7c20
commit
f4de9682b8
@ -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", "" ) );
|
||||
|
@ -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() );
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user