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

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

# Line 97 | Line 97 | public class ConcurrentSkipListSubSetTes
97          assertEquals(0, set0().size());
98      }
99  
100
100      /**
101       * isEmpty is true before add, false after
102       */
# Line 168 | Line 167 | public class ConcurrentSkipListSubSetTes
167          } catch (ClassCastException success) {}
168      }
169  
171
170      /**
171       * addAll(null) throws NPE
172       */
# Line 329 | Line 327 | public class ConcurrentSkipListSubSetTes
327          }
328      }
329  
332
333
330      /**
331       * lower returns preceding element
332       */
# Line 472 | Line 468 | public class ConcurrentSkipListSubSetTes
468          assertFalse(it.hasNext());
469      }
470  
475
471      /**
472       * toString contains toStrings of elements
473       */
# Line 480 | Line 475 | public class ConcurrentSkipListSubSetTes
475          NavigableSet q = populatedSet(SIZE);
476          String s = q.toString();
477          for (int i = 0; i < SIZE; ++i) {
478 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
478 >            assertTrue(s.contains(String.valueOf(i)));
479          }
480      }
481  
# Line 677 | Line 672 | public class ConcurrentSkipListSubSetTes
672          } catch (ClassCastException success) {}
673      }
674  
680
675      /**
676       * addAll(null) throws NPE
677       */
# Line 832 | Line 826 | public class ConcurrentSkipListSubSetTes
826          }
827      }
828  
835
836
829      /**
830       * lower returns preceding element
831       */
# Line 976 | Line 968 | public class ConcurrentSkipListSubSetTes
968          assertFalse(it.hasNext());
969      }
970  
979
971      /**
972       * toString contains toStrings of elements
973       */
# Line 984 | Line 975 | public class ConcurrentSkipListSubSetTes
975          NavigableSet q = populatedSet(SIZE);
976          String s = q.toString();
977          for (int i = 0; i < SIZE; ++i) {
978 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
978 >            assertTrue(s.contains(String.valueOf(i)));
979          }
980      }
981  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines