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.Vector; |
9 |
|
|
import java.util.Collection; |
10 |
|
|
|
11 |
|
|
import junit.framework.Test; |
12 |
|
|
import junit.framework.TestSuite; |
13 |
|
|
|
14 |
|
|
public class VectorTest 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 Vector.class; } |
22 |
|
|
public Collection emptyCollection() { return new Vector(); } |
23 |
|
|
public Object makeElement(int i) { return i; } |
24 |
|
|
public boolean isConcurrent() { return false; } |
25 |
|
|
public boolean permitsNulls() { return true; } |
26 |
|
|
} |
27 |
|
|
return newTestSuite(// VectorTest.class, |
28 |
|
|
CollectionTest.testSuite(new Implementation())); |
29 |
|
|
} |
30 |
|
|
|
31 |
|
|
} |