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); |
606 |
|
} |
607 |
|
|
608 |
|
/** |
609 |
< |
* A deserialized map equals original |
609 |
> |
* A deserialized/reserialized map equals original |
610 |
|
*/ |
611 |
|
public void testSerialization() throws Exception { |
612 |
|
NavigableMap x = map5(); |
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; |