ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/LinkedHashMapTest.java
Revision: 1.1
Committed: Wed Dec 12 16:59:55 2018 UTC (5 years, 5 months ago) by jsr166
Branch: MAIN
Log Message:
Add LinkedHashMapTest

File Contents

# Content
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 Object makeKey(int i) { return i; }
23 public Object makeValue(int i) { return i; }
24 public boolean isConcurrent() { return false; }
25 public boolean permitsNullKeys() { return true; }
26 public boolean permitsNullValues() { return true; }
27 public boolean supportsSetValue() { return true; }
28 }
29 return newTestSuite(
30 // LinkedHashMapTest.class,
31 MapTest.testSuite(new Implementation()));
32 }
33 }