22 |
|
|
23 |
|
public class ConcurrentSkipListMapTest extends JSR166TestCase { |
24 |
|
public static void main(String[] args) { |
25 |
< |
junit.textui.TestRunner.run(suite()); |
25 |
> |
main(suite(), args); |
26 |
|
} |
27 |
|
public static Test suite() { |
28 |
|
return new TestSuite(ConcurrentSkipListMapTest.class); |
997 |
|
|
998 |
|
static NavigableMap<Integer, Integer> newMap(Class cl) throws Exception { |
999 |
|
NavigableMap<Integer, Integer> result = |
1000 |
< |
(NavigableMap<Integer, Integer>) cl.newInstance(); |
1000 |
> |
(NavigableMap<Integer, Integer>) cl.getConstructor().newInstance(); |
1001 |
|
assertEquals(0, result.size()); |
1002 |
|
assertFalse(result.keySet().iterator().hasNext()); |
1003 |
|
return result; |
1273 |
|
} |
1274 |
|
|
1275 |
|
static boolean eq(Integer i, int j) { |
1276 |
< |
return i == null ? j == -1 : i == j; |
1276 |
> |
return (i == null) ? j == -1 : i == j; |
1277 |
|
} |
1278 |
|
|
1279 |
|
} |