You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2015/01/25 23:25:26 UTC

ant-ivy git commit: fix the unit tests: the order doesn’t matter

Repository: ant-ivy
Updated Branches:
  refs/heads/master f6322b7fb -> dcde20001


fix the unit tests: the order doesn’t matter

Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/dcde2000
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/dcde2000
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/dcde2000

Branch: refs/heads/master
Commit: dcde20001063fc25f622e4b1c7775f735a7255f0
Parents: f6322b7
Author: Nicolas Lalevée <ni...@hibnet.org>
Authored: Sun Jan 25 23:25:10 2015 +0100
Committer: Nicolas Lalevée <ni...@hibnet.org>
Committed: Sun Jan 25 23:25:10 2015 +0100

----------------------------------------------------------------------
 test/java/org/apache/ivy/core/report/ResolveReportTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/dcde2000/test/java/org/apache/ivy/core/report/ResolveReportTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/core/report/ResolveReportTest.java b/test/java/org/apache/ivy/core/report/ResolveReportTest.java
index 5f70e5a..08b3cee 100644
--- a/test/java/org/apache/ivy/core/report/ResolveReportTest.java
+++ b/test/java/org/apache/ivy/core/report/ResolveReportTest.java
@@ -19,6 +19,7 @@ package org.apache.ivy.core.report;
 
 import java.io.File;
 import java.util.Arrays;
+import java.util.HashSet;
 
 import junit.framework.TestCase;
 
@@ -79,8 +80,8 @@ public class ResolveReportTest extends TestCase {
             String rev, String conf, String[] targetConfs) {
         assertEquals(ModuleRevisionId.newInstance(org, mod, rev), dep.getDependencyRevisionId());
         assertTrue(Arrays.asList(dep.getModuleConfigurations()).contains(conf));
-        assertEquals(Arrays.asList(targetConfs),
-            Arrays.asList(dep.getDependencyConfigurations(conf)));
+        assertEquals(new HashSet<String>(Arrays.asList(targetConfs)),
+            new HashSet<String>(Arrays.asList(dep.getDependencyConfigurations(conf))));
     }
 
     public void testFixedMdSimple() throws Exception {