You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/10/28 19:53:31 UTC

[2/2] incubator-groovy git commit: GROOVY-7649: Grape.resolve() always fails after first unresolved dependency

GROOVY-7649: Grape.resolve() always fails after first unresolved dependency

add test


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/ddb6ea07
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/ddb6ea07
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/ddb6ea07

Branch: refs/heads/master
Commit: ddb6ea07147bf4b1cdf83aa1116d20007e77f2f7
Parents: 292be3c
Author: pascalschumacher <pa...@gmx.net>
Authored: Wed Oct 28 19:51:00 2015 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Wed Oct 28 19:51:00 2015 +0100

----------------------------------------------------------------------
 src/test/groovy/grape/GrapeIvyTest.groovy | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/ddb6ea07/src/test/groovy/grape/GrapeIvyTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/grape/GrapeIvyTest.groovy b/src/test/groovy/grape/GrapeIvyTest.groovy
index 10bb4f8..bd33870 100644
--- a/src/test/groovy/grape/GrapeIvyTest.groovy
+++ b/src/test/groovy/grape/GrapeIvyTest.groovy
@@ -420,4 +420,15 @@ class GrapeIvyTest extends CompilableTestSupport {
         '''
         assert System.getProperty('groovy7548prop') == 'y'
     }
+
+    @Test // GROOVY-7649
+    void testResolveSucceedsAfterFailure() {
+        GroovyClassLoader loader = new GroovyClassLoader()
+
+        shouldFail{
+            Grape.resolve([classLoader:loader], [], [groupId:'bogus', artifactId:'bogus', version:'0.1'])
+        }
+
+        Grape.resolve([classLoader:loader], [], [groupId:'org.apache.poi', artifactId:'poi', version:'3.7'])
+    }
 }