< prev index next >

test/jdk/java/util/concurrent/tck/CopyOnWriteArraySetTest.java

Print this page
8200258: Improve CopyOnWriteArrayList subList code
Reviewed-by: martin, psandoz, smarks

*** 47,57 **** public class CopyOnWriteArraySetTest extends JSR166TestCase { public static void main(String[] args) { main(suite(), args); } public static Test suite() { ! return new TestSuite(CopyOnWriteArraySetTest.class); } static CopyOnWriteArraySet<Integer> populatedSet(int n) { CopyOnWriteArraySet<Integer> a = new CopyOnWriteArraySet<>(); assertTrue(a.isEmpty()); --- 47,66 ---- public class CopyOnWriteArraySetTest extends JSR166TestCase { public static void main(String[] args) { main(suite(), args); } public static Test suite() { ! class Implementation implements CollectionImplementation { ! public Class<?> klazz() { return CopyOnWriteArraySet.class; } ! public Set emptyCollection() { return new CopyOnWriteArraySet(); } ! public Object makeElement(int i) { return i; } ! public boolean isConcurrent() { return true; } ! public boolean permitsNulls() { return true; } ! } ! return newTestSuite( ! CopyOnWriteArraySetTest.class, ! CollectionTest.testSuite(new Implementation())); } static CopyOnWriteArraySet<Integer> populatedSet(int n) { CopyOnWriteArraySet<Integer> a = new CopyOnWriteArraySet<>(); assertTrue(a.isEmpty());
< prev index next >