[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:
Michael Osipov 2020-06-10 09:55:52 +02:00
parent b4725dbe06
commit ef8c95eb39
1 changed files with 1 additions and 1 deletions

View File

@ -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" ),