Simplify redundant collection operations

This commit is contained in:
Basil Crow committed 2020-12-11 21:34:22 -08:00
1 parent 86d59a1347
commit 9a6566d5e4
1 file changed
+2 -2
@@ -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());