Simplify redundant collection operations
@@ -526,8 +526,8 @@ public class ProjectTest {
Map<Integer,Fingerprint.RangeSet> relationship = upstream.getRelationship(downstream);
assertFalse("Project upstream should have relationship with downstream", relationship.isEmpty());
- assertTrue("Relationship should contain upstream #3", relationship.keySet().contains(3));
- assertFalse("Relationship should not contain upstream #4 because previous fingerprinted file was not changed since #3", relationship.keySet().contains(4));
+ assertTrue("Relationship should contain upstream #3", relationship.containsKey(3));
+ assertFalse("Relationship should not contain upstream #4 because previous fingerprinted file was not changed since #3", relationship.containsKey(4));
assertEquals("downstream #2 should be the first build which depends on upstream #3", 2, relationship.get(3).min());
assertEquals("downstream #3 should be the last build which depends on upstream #3", 3, relationship.get(3).max()-1);
assertEquals("downstream #4 should depend only on upstream #5", 4, relationship.get(5).min());
