ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/LinkedTransferQueueTest.java
(Generate patch)

Comparing jsr166/src/test/tck/LinkedTransferQueueTest.java (file contents):
Revision 1.66 by jsr166, Sun Oct 18 04:48:32 2015 UTC vs.
Revision 1.67 by jsr166, Sun Oct 16 20:16:36 2016 UTC

# Line 24 | Line 24 | import junit.framework.Test;
24  
25   @SuppressWarnings({"unchecked", "rawtypes"})
26   public class LinkedTransferQueueTest extends JSR166TestCase {
27    static class Implementation implements CollectionImplementation {
28        public Class<?> klazz() { return LinkedTransferQueue.class; }
29        public Collection emptyCollection() { return new LinkedTransferQueue(); }
30        public Object makeElement(int i) { return i; }
31        public boolean isConcurrent() { return true; }
32        public boolean permitsNulls() { return false; }
33    }
34
27      public static class Generic extends BlockingQueueTest {
28          protected BlockingQueue emptyCollection() {
29              return new LinkedTransferQueue();
# Line 43 | Line 35 | public class LinkedTransferQueueTest ext
35      }
36  
37      public static Test suite() {
38 +        class Implementation implements CollectionImplementation {
39 +            public Class<?> klazz() { return LinkedTransferQueue.class; }
40 +            public Collection emptyCollection() { return new LinkedTransferQueue(); }
41 +            public Object makeElement(int i) { return i; }
42 +            public boolean isConcurrent() { return true; }
43 +            public boolean permitsNulls() { return false; }
44 +        }
45          return newTestSuite(LinkedTransferQueueTest.class,
46                              new Generic().testSuite(),
47                              CollectionTest.testSuite(new Implementation()));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines