Skip to content

Commit

Permalink
[MNG-6937] StringSearchModelInterpolatorTest fails on symlinked paths
Browse files Browse the repository at this point in the history
Don't compare baseDir in a canonical form when the second comparing value
(System.getProperty( "user.dir" )) is not canonicalized.

This closes #361
  • Loading branch information
michael-o committed Jun 11, 2020
1 parent b4725db commit ef8c95e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public void testInterpolateObjectWithPomFile()
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" ),
Expand Down

0 comments on commit ef8c95e

Please sign in to comment.