[cvs] / jsr166 / src / test / tck / ArrayListTest.java Repository:
ViewVC logotype

View of /jsr166/src/test/tck/ArrayListTest.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (annotate)
Mon Oct 17 17:52:30 2016 UTC (13 months, 3 weeks ago) by jsr166
Branch: MAIN
add ArrayListTest (because it was easy enough to do so)
/*
 * Written by Doug Lea and Martin Buchholz with assistance from
 * members of JCP JSR-166 Expert Group and released to the public
 * domain, as explained at
 * http://creativecommons.org/publicdomain/zero/1.0/
 */

import java.util.ArrayList;
import java.util.Collection;

import junit.framework.Test;
import junit.framework.TestSuite;

public class ArrayListTest extends JSR166TestCase {
    public static void main(String[] args) {
        main(suite(), args);
    }

    public static Test suite() {
        class Implementation implements CollectionImplementation {
            public Class<?> klazz() { return ArrayList.class; }
            public Collection emptyCollection() { return new ArrayList(); }
            public Object makeElement(int i) { return i; }
            public boolean isConcurrent() { return false; }
            public boolean permitsNulls() { return true; }
        }
        return newTestSuite(// ArrayListTest.class,
                            CollectionTest.testSuite(new Implementation()));
    }

}

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8