ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/CollectionTest.java
Revision: 1.10
Committed: Tue Oct 25 01:32:55 2016 UTC (7 years, 6 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +0 -253 lines
Log Message:
fix 4jdk7-test ant target

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 junit.framework.Test;
9
10 /**
11 * Contains tests applicable to all Collection implementations.
12 */
13 public class CollectionTest extends JSR166TestCase {
14 final CollectionImplementation impl;
15
16 /** Tests are parameterized by a Collection implementation. */
17 CollectionTest(CollectionImplementation impl, String methodName) {
18 super(methodName);
19 this.impl = impl;
20 }
21
22 public static Test testSuite(CollectionImplementation impl) {
23 return newTestSuite
24 (parameterizedTestSuite(CollectionTest.class,
25 CollectionImplementation.class,
26 impl),
27 jdk8ParameterizedTestSuite(CollectionTest.class,
28 CollectionImplementation.class,
29 impl));
30 }
31
32 // public void testCollectionDebugFail() {
33 // fail(impl.klazz().getSimpleName());
34 // }
35 }