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

Comparing jsr166/src/test/tck/ArrayBlockingQueueTest.java (file contents):
Revision 1.75 by jsr166, Sat Nov 5 23:38:21 2016 UTC vs.
Revision 1.76 by jsr166, Sun Nov 6 02:40:38 2016 UTC

# Line 25 | Line 25 | import junit.framework.Test;
25  
26   public class ArrayBlockingQueueTest extends JSR166TestCase {
27  
28    public static class Fair extends BlockingQueueTest {
29        protected BlockingQueue emptyCollection() {
30            return populatedQueue(0, SIZE, 2 * SIZE, true);
31        }
32    }
33
34    public static class NonFair extends BlockingQueueTest {
35        protected BlockingQueue emptyCollection() {
36            return populatedQueue(0, SIZE, 2 * SIZE, false);
37        }
38    }
39
28      public static void main(String[] args) {
29          main(suite(), args);
30      }
# Line 52 | Line 40 | public class ArrayBlockingQueueTest exte
40              public boolean isConcurrent() { return true; }
41              public boolean permitsNulls() { return false; }
42          }
43 <        return newTestSuite(ArrayBlockingQueueTest.class,
44 <                            new Fair().testSuite(),
45 <                            new NonFair().testSuite(),
46 <                            CollectionTest.testSuite(new Implementation()));
43 >
44 >        return newTestSuite(
45 >            ArrayBlockingQueueTest.class,
46 >            new Fair().testSuite(),
47 >            new NonFair().testSuite(),
48 >            CollectionTest.testSuite(new Implementation()));
49 >    }
50 >
51 >    public static class Fair extends BlockingQueueTest {
52 >        protected BlockingQueue emptyCollection() {
53 >            return populatedQueue(0, SIZE, 2 * SIZE, true);
54 >        }
55 >    }
56 >
57 >    public static class NonFair extends BlockingQueueTest {
58 >        protected BlockingQueue emptyCollection() {
59 >            return populatedQueue(0, SIZE, 2 * SIZE, false);
60 >        }
61      }
62  
63      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines