ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/LinkedHashMapTest.java
Revision: 1.2
Committed: Sun Sep 29 20:40:48 2019 UTC (4 years, 7 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -2 lines
Log Message:
add MapTest.testConcurrentAccess

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 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 }