ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ArrayListTest.java
Revision: 1.1
Committed: Mon Oct 17 17:52:30 2016 UTC (7 years, 6 months ago) by jsr166
Branch: MAIN
Log Message:
add ArrayListTest (because it was easy enough to do so)

File Contents

# User Rev Content
1 jsr166 1.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.ArrayList;
9     import java.util.Collection;
10    
11     import junit.framework.Test;
12     import junit.framework.TestSuite;
13    
14     public class ArrayListTest extends JSR166TestCase {
15     public static void main(String[] args) {
16     main(suite(), args);
17     }
18    
19     public static Test suite() {
20     class Implementation implements CollectionImplementation {
21     public Class<?> klazz() { return ArrayList.class; }
22     public Collection emptyCollection() { return new ArrayList(); }
23     public Object makeElement(int i) { return i; }
24     public boolean isConcurrent() { return false; }
25     public boolean permitsNulls() { return true; }
26     }
27     return newTestSuite(// ArrayListTest.class,
28     CollectionTest.testSuite(new Implementation()));
29     }
30    
31     }