"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/test/java/jenkins/model/lazy/AbstractLazyLoadRunMapTest.java" between
jenkins-jenkins-2.302.tar.gz and jenkins-jenkins-2.303.tar.gz

About: Jenkins is a automation server (written in Java) which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software (for e.g. as Continuous Integration and Continuous Delivery server). Weekly release.

AbstractLazyLoadRunMapTest.java  (jenkins-jenkins-2.302):AbstractLazyLoadRunMapTest.java  (jenkins-jenkins-2.303)
skipping to change at line 32 skipping to change at line 32
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package jenkins.model.lazy; package jenkins.model.lazy;
import java.io.File; import java.io.File;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNull; import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame; import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
import jenkins.model.lazy.AbstractLazyLoadRunMap.Direction; import jenkins.model.lazy.AbstractLazyLoadRunMap.Direction;
import org.junit.Before; import org.junit.Before;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
skipping to change at line 160 skipping to change at line 161
@Test @Test
public void lookupWithBogusKeyType() { public void lookupWithBogusKeyType() {
assertNull(a.get(null)); assertNull(a.get(null));
assertNull(a.get("foo")); assertNull(a.get("foo"));
assertNull(a.get(this)); assertNull(a.get(this));
} }
@Test @Test
public void firstKey() { public void firstKey() {
assertEquals(5, a.firstKey().intValue()); assertEquals(5, a.firstKey().intValue());
assertThrows(NoSuchElementException.class, () -> b.firstKey());
try {
b.firstKey();
fail();
} catch (NoSuchElementException e) {
// as expected
}
} }
@Issue("JENKINS-26690") @Issue("JENKINS-26690")
@Test public void headMap() { @Test public void headMap() {
assertEquals("[]", a.headMap(Integer.MAX_VALUE).keySet().toString()); assertEquals("[]", a.headMap(Integer.MAX_VALUE).keySet().toString());
assertEquals("[]", a.headMap(6).keySet().toString()); assertEquals("[]", a.headMap(6).keySet().toString());
assertEquals("[]", a.headMap(5).keySet().toString()); assertEquals("[]", a.headMap(5).keySet().toString());
assertEquals("[5]", a.headMap(4).keySet().toString()); assertEquals("[5]", a.headMap(4).keySet().toString());
assertEquals("[5]", a.headMap(3).keySet().toString()); assertEquals("[5]", a.headMap(3).keySet().toString());
assertEquals("[5, 3]", a.headMap(2).keySet().toString()); assertEquals("[5, 3]", a.headMap(2).keySet().toString());
 End of changes. 2 change blocks. 
7 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)