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

Comparing jsr166/src/test/tck/TreeSubMapTest.java (file contents):
Revision 1.16 by jsr166, Tue May 31 16:16:24 2011 UTC vs.
Revision 1.20 by jsr166, Thu May 30 03:28:55 2013 UTC

# Line 16 | Line 16 | public class TreeSubMapTest extends JSR1
16      }
17  
18      /**
19 <     * Create a map from Integers 1-5 to Strings "A"-"E".
19 >     * Returns a new map from Integers 1-5 to Strings "A"-"E".
20       */
21      private static NavigableMap map5() {
22          TreeMap map = new TreeMap();
# Line 40 | Line 40 | public class TreeSubMapTest extends JSR1
40      }
41  
42      /**
43 <     * Create a map from Integers -5 to -1 to Strings "A"-"E".
43 >     * Returns a new map from Integers -5 to -1 to Strings "A"-"E".
44       */
45      private static NavigableMap dmap5() {
46          TreeMap map = new TreeMap();
# Line 67 | Line 67 | public class TreeSubMapTest extends JSR1
67      public void testClear() {
68          NavigableMap map = map5();
69          map.clear();
70 <        assertEquals(map.size(), 0);
70 >        assertEquals(0, map.size());
71      }
72  
73      /**
# Line 429 | Line 429 | public class TreeSubMapTest extends JSR1
429          NavigableMap x = map5();
430          NavigableMap y = serialClone(x);
431  
432 <        assertTrue(x != y);
432 >        assertNotSame(x, y);
433          assertEquals(x.size(), y.size());
434          assertEquals(x.toString(), y.toString());
435          assertEquals(x, y);
# Line 577 | Line 577 | public class TreeSubMapTest extends JSR1
577      public void testDescendingClear() {
578          NavigableMap map = dmap5();
579          map.clear();
580 <        assertEquals(map.size(), 0);
580 >        assertEquals(0, map.size());
581      }
582  
583      /**
# Line 956 | Line 956 | public class TreeSubMapTest extends JSR1
956          NavigableMap x = dmap5();
957          NavigableMap y = serialClone(x);
958  
959 <        assertTrue(x != y);
959 >        assertNotSame(x, y);
960          assertEquals(x.size(), y.size());
961          assertEquals(x.toString(), y.toString());
962          assertEquals(x, y);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines