From d985970c2a30972dd42a33fe2b7e6653bfec91d9 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Gonzalez Date: Fri, 27 Apr 2007 21:40:00 +0000 Subject: [PATCH] Fix failing test in cygwin git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@533235 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/embedder/MavenEmbedderBehaviorTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderBehaviorTest.java b/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderBehaviorTest.java index 2aabe604fa..4dd604f405 100644 --- a/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderBehaviorTest.java +++ b/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderBehaviorTest.java @@ -44,7 +44,9 @@ public class MavenEmbedderBehaviorTest MavenEmbedder maven = new MavenEmbedder( configuration ); - assertEquals( (new File("/global/maven/local-repository")).getAbsolutePath(), maven.getLocalRepository().getBasedir() ); + String expectedPath = ( new File( "/global/maven/local-repository" ) ).getCanonicalPath(); + String actualPath = maven.getLocalRepository().getBasedir(); + assertEquals( expectedPath, actualPath ); maven.stop(); }