18 |
|
import java.util.concurrent.ConcurrentSkipListMap; |
19 |
|
|
20 |
|
import junit.framework.Test; |
21 |
– |
import junit.framework.TestSuite; |
21 |
|
|
22 |
|
public class ConcurrentSkipListMapTest extends JSR166TestCase { |
23 |
|
public static void main(String[] args) { |
24 |
|
main(suite(), args); |
25 |
|
} |
26 |
|
public static Test suite() { |
27 |
< |
return new TestSuite(ConcurrentSkipListMapTest.class); |
27 |
> |
class Implementation implements MapImplementation { |
28 |
> |
public Class<?> klazz() { return ConcurrentSkipListMap.class; } |
29 |
> |
public Map emptyMap() { return new ConcurrentSkipListMap(); } |
30 |
> |
public boolean isConcurrent() { return true; } |
31 |
> |
public boolean remappingFunctionCalledAtMostOnce() { return false; }; |
32 |
> |
public boolean permitsNullKeys() { return false; } |
33 |
> |
public boolean permitsNullValues() { return false; } |
34 |
> |
public boolean supportsSetValue() { return false; } |
35 |
> |
} |
36 |
> |
return newTestSuite( |
37 |
> |
ConcurrentSkipListMapTest.class, |
38 |
> |
MapTest.testSuite(new Implementation())); |
39 |
|
} |
40 |
|
|
41 |
|
/** |