ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/HashtableTest.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 members
3 * of JCP JSR-166 Expert Group and released to the public domain, as
4 * explained at http://creativecommons.org/publicdomain/zero/1.0/
5 */
6
7 import java.util.Map;
8 import java.util.Hashtable;
9
10 import junit.framework.Test;
11
12 public class HashtableTest extends JSR166TestCase {
13 public static void main(String[] args) {
14 main(suite(), args);
15 }
16 public static Test suite() {
17 class Implementation implements MapImplementation {
18 public Class<?> klazz() { return Hashtable.class; }
19 public Map emptyMap() { return new Hashtable(); }
20 public boolean isConcurrent() { return true; }
21 public boolean permitsNullKeys() { return false; }
22 public boolean permitsNullValues() { return false; }
23 public boolean supportsSetValue() { return true; }
24 }
25 return newTestSuite(MapTest.testSuite(new Implementation()));
26 }
27 }