IVY-1594 Use a separate moduleid for the testcase to prevent other tests, reliant...
authorJaikiran Pai <jaikiran@apache.org>
Tue, 23 Oct 2018 06:22:28 +0000 (11:52 +0530)
committerJaikiran Pai <jaikiran@apache.org>
Tue, 23 Oct 2018 06:22:28 +0000 (11:52 +0530)
test/java/org/apache/ivy/core/retrieve/RetrieveTest.java
test/repositories/1/org1/mod1.7/ivys/ivy-3.0.xml [moved from test/repositories/1/org1/mod1.1/ivys/ivy-3.0.xml with 97% similarity]
test/repositories/1/org1/mod1.7/jars/zipped-artifact-3.0.zip [moved from test/repositories/1/org1/mod1.1/jars/zipped-artifact-3.0.zip with 100% similarity]

index 239cd36..fd84298 100644 (file)
@@ -265,7 +265,7 @@ public class RetrieveTest {
     @Test
     public void testRetrieveZipArtifactWithSymlinks() throws Exception {
         // resolve (inline) with org1:mod1.1:3.0 as a dependency
-        final ResolveReport report = ivy.resolve(new ModuleRevisionId(new ModuleId("org1", "mod1.1"), "3.0"),
+        final ResolveReport report = ivy.resolve(new ModuleRevisionId(new ModuleId("org1", "mod1.7"), "3.0"),
                 getResolveOptions(new String[]{"*"}), false);
         assertNotNull("Resolution report is null", report);
         final ModuleDescriptor md = report.getModuleDescriptor();
@@ -275,7 +275,7 @@ public class RetrieveTest {
         ivy.retrieve(md.getModuleRevisionId(),
                 getRetrieveOptions().setMakeSymlinks(true).setDestArtifactPattern(retrievePattern));
 
-        final String expectedRetrieveLocation = IvyPatternHelper.substitute(retrievePattern, "org1", "mod1.1",
+        final String expectedRetrieveLocation = IvyPatternHelper.substitute(retrievePattern, "org1", "mod1.7",
                 "3.0", "zipped-artifact", null, null, "default");
         // make sure it's retrieved as a symlink (on systems that support symlink)
         assertLinkOrExists(expectedRetrieveLocation);
@@ -16,7 +16,7 @@
   -->
 <ivy-module version="1.0">
     <info organisation="org1"
-          module="mod1.1"
+          module="mod1.7"
           revision="3.0"
     />
     <publications>