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

Comparing jsr166/src/test/tck/TreeSetTest.java (file contents):
Revision 1.45 by jsr166, Wed Jan 4 06:09:58 2017 UTC vs.
Revision 1.47 by jsr166, Fri Aug 4 03:30:21 2017 UTC

# Line 42 | Line 42 | public class TreeSetTest extends JSR166T
42       * Returns a new set of given size containing consecutive
43       * Integers 0 ... n - 1.
44       */
45 <    private TreeSet<Integer> populatedSet(int n) {
45 >    private static TreeSet<Integer> populatedSet(int n) {
46          TreeSet<Integer> q = new TreeSet<>();
47          assertTrue(q.isEmpty());
48          for (int i = n - 1; i >= 0; i -= 2)
# Line 57 | Line 57 | public class TreeSetTest extends JSR166T
57      /**
58       * Returns a new set of first 5 ints.
59       */
60 <    private TreeSet set5() {
60 >    private static TreeSet set5() {
61          TreeSet q = new TreeSet();
62          assertTrue(q.isEmpty());
63          q.add(one);
# Line 522 | Line 522 | public class TreeSetTest extends JSR166T
522      }
523  
524      /**
525 <     * A deserialized serialized set has same elements
525 >     * A deserialized/reserialized set equals original
526       */
527      public void testSerialization() throws Exception {
528          NavigableSet x = populatedSet(SIZE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines