You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by mb...@apache.org on 2012/10/15 23:57:22 UTC
svn commit: r1398531 -
/ant/ivy/core/trunk/test/java/org/apache/ivy/core/resolve/ResolveTest.java
Author: mbenson
Date: Mon Oct 15 21:57:21 2012
New Revision: 1398531
URL: http://svn.apache.org/viewvc?rev=1398531&view=rev
Log:
add test to show that IBiblioResolver can resolve latest.integration to a snapshot when the snapshot was deployed as uniqueVersion false
Modified:
ant/ivy/core/trunk/test/java/org/apache/ivy/core/resolve/ResolveTest.java
Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/core/resolve/ResolveTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/core/resolve/ResolveTest.java?rev=1398531&r1=1398530&r2=1398531&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/core/resolve/ResolveTest.java (original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/core/resolve/ResolveTest.java Mon Oct 15 21:57:21 2012
@@ -4621,6 +4621,26 @@ public class ResolveTest extends TestCas
"test-SNAPSHOT2", "jar", "jar").exists());
}
+ public void testResolveMaven2Snapshot2AsLatestIntegration() throws Exception {
+ // test case for IVY-1036
+ // here we test maven SNAPSHOT versions handling,
+ // with m2 snapshotRepository/uniqueVersion set to true
+ // but retrieving by latest.integration
+ Ivy ivy = new Ivy();
+ ivy.configure(new File("test/repositories/m2/ivysettings.xml"));
+ ResolveReport report = ivy.resolve(
+ ModuleRevisionId.newInstance("org.apache", "test-SNAPSHOT2", "latest.integration"),
+ getResolveOptions(new String[] { "*(public)" }), true);
+ assertNotNull(report);
+ assertFalse(report.hasError());
+
+ // dependencies
+ assertTrue(getIvyFileInCache(
+ ModuleRevisionId.newInstance("org.apache", "test-SNAPSHOT2", "2.0.2-SNAPSHOT"))
+ .exists());
+ assertTrue(getArchiveFileInCache(ivy, "org.apache", "test-SNAPSHOT2", "2.0.2-SNAPSHOT",
+ "test-SNAPSHOT2", "jar", "jar").exists());
+ }
public void testNamespaceMapping() throws Exception {
// the dependency is in another namespace