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

Diff of /jsr166/src/test/tck/LinkedListTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.41, Sun Oct 16 20:44:18 2016 UTC revision 1.43, Mon Nov 14 23:57:55 2016 UTC
# Line 21  Line 21 
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            class SubListImplementation extends Implementation {
32                public Collection emptyCollection() {
33                    return new LinkedList().subList(0, 0);
34                }
35            }
36            return newTestSuite(
37                    LinkedListTest.class,
38                    CollectionTest.testSuite(new Implementation()),
39                    CollectionTest.testSuite(new SubListImplementation()));
40      }      }
41    
42      /**      /**

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.43

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8