Skip to content

Commit

Permalink
Update rewrite-maven/src/test/java/org/openrewrite/maven/internal/Mav…
Browse files Browse the repository at this point in the history
…enPomDownloaderTest.java

Co-authored-by: Tim te Beek <[email protected]>
  • Loading branch information
adastraperangusta and timtebeek authored Dec 5, 2024
1 parent 4d360a9 commit ae2ce39
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,24 +577,6 @@ void skipsLocalInvalidArtifactsEmptyJar(@TempDir Path localRepository) throws IO
@Test
@SetSystemProperty(key = "org.openrewrite.allowPomDownloadFailure", value = "true")
void allowPomDowloadFailure(@TempDir Path localRepository) throws IOException, MavenDownloadingException {
Path localArtifact = localRepository.resolve("com/some/some-artifact");
assertThat(localArtifact.toFile().mkdirs()).isTrue();
Files.createDirectories(localArtifact.resolve("1"));

Path localPom = localRepository.resolve("com/some/some-artifact/1/some-artifact-1.pom");
Files.writeString(localPom,
//language=xml
"""
<project>
<groupId>com.some</groupId>
<artifactId>some-artifact</artifactId>
<version>1</version>
</project>
"""
);
Path localJar = localRepository.resolve("com/some/some-artifact/1/some-artifact-1.jar");
Files.writeString(localJar, "");

MavenRepository mavenLocal = MavenRepository.builder()
.id("local")
.uri(localRepository.toUri().toString())
Expand Down

0 comments on commit ae2ce39

Please sign in to comment.