From addb3a1a22f99ad307f5581b3fcbb4e1b5df1e83 Mon Sep 17 00:00:00 2001 From: "Edwin L. Punzalan" Date: Wed, 22 Feb 2006 08:17:12 +0000 Subject: [PATCH] PR: MRM-13 moved the expected files from target-repository to expected-files git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@379728 13f79535-47bb-0310-9956-ffa450edef68 --- .../converter/RepositoryConverterTest.java | 4 ++-- .../1.0.0/relocated-v3artifact-1.0.0.jar | 1 - .../1.0.0/relocated-v3artifact-1.0.0.pom | 22 ------------------- .../1.0.0/relocated-v3artifact-1.0.0.pom | 12 ---------- 4 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 maven-repository-converter/src/test/target-repository/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.jar delete mode 100644 maven-repository-converter/src/test/target-repository/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom delete mode 100644 maven-repository-converter/src/test/target-repository/test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom diff --git a/maven-repository-converter/src/test/java/org/apache/maven/repository/converter/RepositoryConverterTest.java b/maven-repository-converter/src/test/java/org/apache/maven/repository/converter/RepositoryConverterTest.java index 55032e519..b2a0512ac 100644 --- a/maven-repository-converter/src/test/java/org/apache/maven/repository/converter/RepositoryConverterTest.java +++ b/maven-repository-converter/src/test/java/org/apache/maven/repository/converter/RepositoryConverterTest.java @@ -206,14 +206,14 @@ public class RepositoryConverterTest assertTrue( "Check if relocated artifact matches", FileUtils.contentEquals( artifactFile, artifact.getFile() ) ); Artifact pomArtifact = createArtifact( "relocated-test", "relocated-v3artifact", "1.0.0", "1.0.0", "pom" ); - File pomFile = getTestFile( "src/test/target-repository/" + targetRepository.pathOf( pomArtifact ) ); + File pomFile = getTestFile( "src/test/expected-files/" + targetRepository.pathOf( pomArtifact ) ); File testFile = getTestFile( "target/test-target-repository/" + targetRepository.pathOf( pomArtifact ) ); assertTrue( "Check if expected relocated pom matches", FileUtils.contentEquals( pomFile, testFile ) ); Artifact orig = createArtifact( "test", "relocated-v3artifact", "1.0.0", "1.0.0", "pom" ); artifactFile = new File( targetRepository.getBasedir(), targetRepository.pathOf( orig ) ); assertTrue( "Check if relocation artifact pom is created", artifactFile.exists() ); - testFile = getTestFile( "src/test/target-repository/" + targetRepository.pathOf( orig ) ); + testFile = getTestFile( "src/test/expected-files/" + targetRepository.pathOf( orig ) ); assertTrue( "Check if expected artifact matches", FileUtils.contentEquals( artifactFile, testFile ) ); } diff --git a/maven-repository-converter/src/test/target-repository/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.jar b/maven-repository-converter/src/test/target-repository/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.jar deleted file mode 100644 index 29ef827e8..000000000 --- a/maven-repository-converter/src/test/target-repository/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.jar +++ /dev/null @@ -1 +0,0 @@ -v3 diff --git a/maven-repository-converter/src/test/target-repository/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom b/maven-repository-converter/src/test/target-repository/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom deleted file mode 100644 index 253ef3466..000000000 --- a/maven-repository-converter/src/test/target-repository/relocated-test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom +++ /dev/null @@ -1,22 +0,0 @@ - - 4.0.0 - relocated-test - relocated-v3artifact - 1.0.0 - - scm:cvs:ext:${maven.username}@localhost:/home/cvs - - - - groupId - artifactId - version - - - groupId - test-artifactId - version - test - - - \ No newline at end of file diff --git a/maven-repository-converter/src/test/target-repository/test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom b/maven-repository-converter/src/test/target-repository/test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom deleted file mode 100644 index b20f62f9e..000000000 --- a/maven-repository-converter/src/test/target-repository/test/relocated-v3artifact/1.0.0/relocated-v3artifact-1.0.0.pom +++ /dev/null @@ -1,12 +0,0 @@ - - test - relocated-v3artifact - 1.0.0 - - - relocated-test - relocated-v3artifact - 1.0.0 - - - \ No newline at end of file -- 2.39.5