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 14:10:58 UTC
[maven-resolver] branch MRESOLVER-273-ng-mapper created (now b3d16e08)
This is an automated email from the ASF dual-hosted git repository.
cstamas pushed a change to branch MRESOLVER-273-ng-mapper
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
at b3d16e08 Pfff
This branch includes the following new commits:
new b3d16e08 Pfff
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[maven-resolver] 01/01: Pfff
Posted by cs...@apache.org.
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 b3d16e0816f1157abd15c7795a57814b7e52091e
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Fri Sep 16 16:10:28 2022 +0200
Pfff
---
.../impl/synccontext/named/BaseDirNameMapperTest.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/synccontext/named/BaseDirNameMapperTest.java b/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/synccontext/named/BaseDirNameMapperTest.java
index 6e9ef169..3d5461dd 100644
--- a/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/synccontext/named/BaseDirNameMapperTest.java
+++ b/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/synccontext/named/BaseDirNameMapperTest.java
@@ -19,6 +19,7 @@ package org.eclipse.aether.internal.impl.synccontext.named;
* under the License.
*/
+import java.io.File;
import java.util.Collection;
import java.util.Iterator;
@@ -36,6 +37,8 @@ import static org.hamcrest.Matchers.hasSize;
public class BaseDirNameMapperTest extends NameMapperTestSupport
{
+ private final String PS = File.separator;
+
BaseDirNameMapper mapper = new BaseDirNameMapper( new HashingNameMapper( new GAVNameMapper() ) );
@Test
@@ -66,7 +69,7 @@ public class BaseDirNameMapperTest extends NameMapperTestSupport
assertThat( names, hasSize( 1 ) );
assertThat( names.iterator().next(),
- equalTo( baseDir + "/.locks/46e98183d232f1e16f863025080c7f2b9797fd10" ) );
+ equalTo( baseDir + PS + ".locks" + PS + "46e98183d232f1e16f863025080c7f2b9797fd10" ) );
}
@Test
@@ -80,7 +83,7 @@ public class BaseDirNameMapperTest extends NameMapperTestSupport
assertThat( names, hasSize( 1 ) );
assertThat( names.iterator().next(),
- equalTo( baseDir + "/.locks/293b3990971f4b4b02b220620d2538eaac5f221b" ) );
+ equalTo( baseDir + PS + ".locks" + PS + "293b3990971f4b4b02b220620d2538eaac5f221b" ) );
}
@Test
@@ -98,8 +101,8 @@ public class BaseDirNameMapperTest extends NameMapperTestSupport
// they are sorted as well
assertThat( namesIterator.next(),
- equalTo( baseDir + "/.locks/d36504431d00d1c6e4d1c34258f2bf0a004de085" ) );
+ equalTo( baseDir + PS + ".locks" + PS + "d36504431d00d1c6e4d1c34258f2bf0a004de085" ) );
assertThat( namesIterator.next(),
- equalTo( baseDir + "/.locks/fbcebba60d7eb931eca634f6ca494a8a1701b638" ) );
+ equalTo( baseDir + PS + ".locks" + PS + "fbcebba60d7eb931eca634f6ca494a8a1701b638" ) );
}
}