21 |
} |
} |
22 |
|
|
23 |
public static Test suite() { |
public static Test suite() { |
24 |
return new TestSuite(LinkedListTest.class); |
class Implementation implements CollectionImplementation { |
25 |
|
public Class<?> klazz() { return LinkedList.class; } |
26 |
|
public Collection emptyCollection() { return new LinkedList(); } |
27 |
|
public Object makeElement(int i) { return i; } |
28 |
|
public boolean isConcurrent() { return false; } |
29 |
|
public boolean permitsNulls() { return true; } |
30 |
|
} |
31 |
|
return newTestSuite(LinkedListTest.class, |
32 |
|
CollectionTest.testSuite(new Implementation())); |
33 |
} |
} |
34 |
|
|
35 |
/** |
/** |