1 |
/* |
2 |
* Written by Doug Lea and Martin Buchholz with assistance from |
3 |
* members of JCP JSR-166 Expert Group and released to the public |
4 |
* domain, as explained at |
5 |
* http://creativecommons.org/publicdomain/zero/1.0/ |
6 |
*/ |
7 |
|
8 |
import java.util.LinkedHashMap; |
9 |
import java.util.Map; |
10 |
|
11 |
import junit.framework.Test; |
12 |
|
13 |
public class LinkedHashMapTest extends JSR166TestCase { |
14 |
public static void main(String[] args) { |
15 |
main(suite(), args); |
16 |
} |
17 |
|
18 |
public static Test suite() { |
19 |
class Implementation implements MapImplementation { |
20 |
public Class<?> klazz() { return LinkedHashMap.class; } |
21 |
public Map emptyMap() { return new LinkedHashMap(); } |
22 |
public boolean isConcurrent() { return false; } |
23 |
public boolean permitsNullKeys() { return true; } |
24 |
public boolean permitsNullValues() { return true; } |
25 |
public boolean supportsSetValue() { return true; } |
26 |
} |
27 |
return newTestSuite( |
28 |
// LinkedHashMapTest.class, |
29 |
MapTest.testSuite(new Implementation())); |
30 |
} |
31 |
} |