diff --git a/src/test/java/org/apache/maven/plugins/deploy/DeployMojoPomPackagingTest.java b/src/test/java/org/apache/maven/plugins/deploy/DeployMojoPomPackagingTest.java index 466c2bc5..e69e10da 100644 --- a/src/test/java/org/apache/maven/plugins/deploy/DeployMojoPomPackagingTest.java +++ b/src/test/java/org/apache/maven/plugins/deploy/DeployMojoPomPackagingTest.java @@ -93,7 +93,7 @@ public void testBasicDeployWithPackagingAsPom(DeployMojo mojo) throws Exception Collections.singletonList("org.apache.maven.test:maven-deploy-test:pom:1.0-SNAPSHOT"), artifacts.stream().map(Artifact::key).collect(Collectors.toList())); assertEquals( - getBasedir().replace(File.separator, "/"), + Paths.get(getBasedir()).toUri().toString(), request.getRepository().getUrl()); } diff --git a/src/test/java/org/apache/maven/plugins/deploy/DeployMojoTest.java b/src/test/java/org/apache/maven/plugins/deploy/DeployMojoTest.java index e6f41eb9..a1e3e1e4 100644 --- a/src/test/java/org/apache/maven/plugins/deploy/DeployMojoTest.java +++ b/src/test/java/org/apache/maven/plugins/deploy/DeployMojoTest.java @@ -115,7 +115,7 @@ public void testBasicDeploy(DeployMojo mojo) throws Exception { "org.apache.maven.test:maven-deploy-test:jar:1.0-SNAPSHOT"), artifacts.stream().map(Artifact::key).collect(Collectors.toList())); assertEquals( - getBasedir().replace(File.separator, "/"), + Paths.get(getBasedir()).toUri().toString(), request.getRepository().getUrl()); } @@ -175,7 +175,7 @@ public void testDeployWithAttachedArtifacts(DeployMojo mojo) throws Exception { "org.apache.maven.test:attached-artifact-test:jar:1.0-SNAPSHOT"), artifacts.stream().map(Artifact::key).collect(Collectors.toList())); assertEquals( - getBasedir().replace(File.separator, "/"), + Paths.get(getBasedir()).toUri().toString(), request.getRepository().getUrl()); }