Skip to content

Commit

Permalink
[SHRINKRES-78] Fix test to not rely on ordering of iterator as return…
Browse files Browse the repository at this point in the history
…ed from Set
  • Loading branch information
ALRubinger committed Nov 6, 2012
1 parent 30f4020 commit 010bf40
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ public void properties() {
Assert.assertEquals(2, exclusions.size());
final Iterator<MavenDependencyExclusion> it = exclusions.iterator();
final MavenDependencyExclusion roundtrip1 = it.next();
Assert.assertEquals(exclusion1, roundtrip1);
Assert.assertTrue(exclusions.contains(roundtrip1));
final MavenDependencyExclusion roundtrip2 = it.next();
Assert.assertEquals(exclusion2, roundtrip2);
Assert.assertTrue(exclusions.contains(roundtrip2));
Assert.assertEquals(groupId + ":" + artifactId + ":" + packaging.toString() + ":" + classifier + ":" + version,
dependency.toCanonicalForm());
}
Expand Down

0 comments on commit 010bf40

Please sign in to comment.