ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentSkipListMapTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentSkipListMapTest.java (file contents):
Revision 1.23 by jsr166, Thu Apr 14 22:55:08 2011 UTC vs.
Revision 1.24 by jsr166, Fri May 27 19:21:27 2011 UTC

# Line 119 | Line 119 | public class ConcurrentSkipListMapTest e
119          assertEquals(five, map.lastKey());
120      }
121  
122
122      /**
123       * keySet.toArray returns contains all keys
124       */
# Line 382 | Line 381 | public class ConcurrentSkipListMapTest e
381          assertEquals("Z", map.get(one));
382      }
383  
385
384      /**
385       * replace value fails when the given key not mapped to expected value
386       */
# Line 403 | Line 401 | public class ConcurrentSkipListMapTest e
401          assertEquals("Z", map.get(one));
402      }
403  
406
404      /**
405       * remove removes the correct key-value pair from the map
406       */
# Line 534 | Line 531 | public class ConcurrentSkipListMapTest e
531      }
532  
533  
537
534      /**
535       * lowerKey returns preceding element
536       */
# Line 678 | Line 674 | public class ConcurrentSkipListMapTest e
674          ConcurrentSkipListMap map = map5();
675          String s = map.toString();
676          for (int i = 1; i <= 5; ++i) {
677 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
677 >            assertTrue(s.contains(String.valueOf(i)));
678          }
679      }
680  
# Line 717 | Line 713 | public class ConcurrentSkipListMapTest e
713          } catch (NullPointerException success) {}
714      }
715  
720
716      /**
717       * put(null,x) throws NPE
718       */
# Line 814 | Line 809 | public class ConcurrentSkipListMapTest e
809          assertTrue(r.equals(q));
810      }
811  
817
818
812      /**
813       * subMap returns map with keys in requested range
814       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines