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

Comparing jsr166/src/test/tck/ConcurrentSkipListSubMapTest.java (file contents):
Revision 1.17 by jsr166, Tue Mar 15 19:47:06 2011 UTC vs.
Revision 1.18 by jsr166, Fri May 27 19:21:27 2011 UTC

# Line 72 | Line 72 | public class ConcurrentSkipListSubMapTes
72          assertEquals(map.size(), 0);
73      }
74  
75
75      /**
76       * Maps with same contents are equal
77       */
# Line 141 | Line 140 | public class ConcurrentSkipListSubMapTes
140          assertEquals(five, map.lastKey());
141      }
142  
144
143      /**
144       * keySet returns a Set containing all the keys
145       */
# Line 228 | Line 226 | public class ConcurrentSkipListSubMapTes
226          assertTrue(s.contains("E"));
227      }
228  
231
229      /**
230       * entrySet contains all pairs
231       */
# Line 298 | Line 295 | public class ConcurrentSkipListSubMapTes
295          assertEquals("Z", map.get(one));
296      }
297  
301
298      /**
299       * replace value fails when the given key not mapped to expected value
300       */
# Line 319 | Line 315 | public class ConcurrentSkipListSubMapTes
315          assertEquals("Z", map.get(one));
316      }
317  
322
318      /**
319       * remove removes the correct key-value pair from the map
320       */
# Line 488 | Line 483 | public class ConcurrentSkipListSubMapTes
483          ConcurrentNavigableMap map = map5();
484          String s = map.toString();
485          for (int i = 1; i <= 5; ++i) {
486 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
486 >            assertTrue(s.contains(String.valueOf(i)));
487          }
488      }
489  
# Line 527 | Line 522 | public class ConcurrentSkipListSubMapTes
522          } catch (NullPointerException success) {}
523      }
524  
530
525      /**
526       * put(null,x) throws NPE
527       */
# Line 613 | Line 607 | public class ConcurrentSkipListSubMapTes
607          assertTrue(r.equals(q));
608      }
609  
616
617
610      /**
611       * subMap returns map with keys in requested range
612       */
# Line 759 | Line 751 | public class ConcurrentSkipListSubMapTes
751          assertEquals(map.size(), 0);
752      }
753  
762
754      /**
755       * Maps with same contents are equal
756       */
# Line 828 | Line 819 | public class ConcurrentSkipListSubMapTes
819          assertEquals(m5, map.lastKey());
820      }
821  
831
822      /**
823       * keySet returns a Set containing all the keys
824       */
# Line 915 | Line 905 | public class ConcurrentSkipListSubMapTes
905          assertTrue(s.contains("E"));
906      }
907  
918
908      /**
909       * entrySet contains all pairs
910       */
# Line 985 | Line 974 | public class ConcurrentSkipListSubMapTes
974          assertEquals("Z", map.get(m1));
975      }
976  
988
977      /**
978       * replace value fails when the given key not mapped to expected value
979       */
# Line 1006 | Line 994 | public class ConcurrentSkipListSubMapTes
994          assertEquals("Z", map.get(m1));
995      }
996  
1009
997      /**
998       * remove removes the correct key-value pair from the map
999       */
# Line 1175 | Line 1162 | public class ConcurrentSkipListSubMapTes
1162          ConcurrentNavigableMap map = dmap5();
1163          String s = map.toString();
1164          for (int i = 1; i <= 5; ++i) {
1165 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
1165 >            assertTrue(s.contains(String.valueOf(i)));
1166          }
1167      }
1168  
# Line 1214 | Line 1201 | public class ConcurrentSkipListSubMapTes
1201          } catch (NullPointerException success) {}
1202      }
1203  
1217
1204      /**
1205       * put(null,x) throws NPE
1206       */
# Line 1300 | Line 1286 | public class ConcurrentSkipListSubMapTes
1286          assertTrue(r.equals(q));
1287      }
1288  
1303
1289      /**
1290       * subMap returns map with keys in requested range
1291       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines