You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/09/16 13:36:04 UTC

[maven-resolver] 01/01: Adjust UT to honor possible OS changes

This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch MRESOLVER-273-ng-mapper
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit 526ebd1a8d63ec494c8ed78714158d2b230ca967
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Fri Sep 16 15:35:43 2022 +0200

    Adjust UT to honor possible OS changes
---
 .../internal/impl/synccontext/named/NameMapperTestSupport.java       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/synccontext/named/NameMapperTestSupport.java b/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/synccontext/named/NameMapperTestSupport.java
index 52c994a0..080f6bfd 100644
--- a/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/synccontext/named/NameMapperTestSupport.java
+++ b/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/synccontext/named/NameMapperTestSupport.java
@@ -20,6 +20,7 @@ package org.eclipse.aether.internal.impl.synccontext.named;
  */
 
 import java.io.File;
+import java.io.IOException;
 import java.util.HashMap;
 
 import org.eclipse.aether.RepositorySystemSession;
@@ -41,9 +42,9 @@ public abstract class NameMapperTestSupport
     protected RepositorySystemSession session;
 
     @Before
-    public void before()
+    public void before() throws IOException
     {
-        baseDir = "/home/maven/.m2/repository";
+        baseDir = new File("/home/maven/.m2/repository").getCanonicalPath();
         configProperties = new HashMap<>();
 
         LocalRepository localRepository = new LocalRepository( new File( baseDir ) );