mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-05 08:05:56 +00:00
Simplify redundant collection operations
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user