mirror of https://github.com/apache/maven.git
[MNG-6937] StringSearchModelInterpolatorTest fails on symlinked paths
Don't compare baseDir in a canonical form when the second comparing value (System.getProperty( "user.dir" )) is not canonicalized. This closes #361
This commit is contained in:
parent
b4725dbe06
commit
ef8c95eb39
|
@ -359,7 +359,7 @@ public class StringSearchModelInterpolatorTest
|
|||
interpolator.interpolateObject( obj, model, new File( "." ), config, collector );
|
||||
assertProblemFree( collector );
|
||||
|
||||
assertThat( baseDir.getCanonicalPath(), is( System.getProperty( "user.dir" ) ) );
|
||||
assertThat( baseDir.getAbsolutePath(), is( System.getProperty( "user.dir" ) ) );
|
||||
assertThat( obj.values.size(), is( 1 ) );
|
||||
assertThat( (String) obj.values.get( "key" ), is( anyOf(
|
||||
is( System.getProperty( "user.dir" ) + File.separator + "target" ),
|
||||
|
|
Loading…
Reference in New Issue