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

Comparing jsr166/src/test/tck/TreeMapTest.java (file contents):
Revision 1.30 by jsr166, Sat Feb 28 18:33:42 2015 UTC vs.
Revision 1.32 by jsr166, Thu Sep 15 16:43:56 2016 UTC

# Line 21 | Line 21 | import junit.framework.TestSuite;
21  
22   public class TreeMapTest extends JSR166TestCase {
23      public static void main(String[] args) {
24 <        junit.textui.TestRunner.run(suite());
24 >        main(suite(), args);
25      }
26      public static Test suite() {
27          return new TestSuite(TreeMapTest.class);
# Line 802 | Line 802 | public class TreeMapTest extends JSR166T
802  
803      static NavigableMap<Integer, Integer> newMap(Class cl) throws Exception {
804          NavigableMap<Integer, Integer> result
805 <            = (NavigableMap<Integer, Integer>) cl.newInstance();
805 >            = (NavigableMap<Integer, Integer>) cl.getConstructor().newInstance();
806          assertEquals(0, result.size());
807          assertFalse(result.keySet().iterator().hasNext());
808          return result;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines