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

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

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

revision 1.75, Sat Nov 5 23:38:21 2016 UTC revision 1.76, Sun Nov 6 02:40:38 2016 UTC
# Line 25  Line 25 
25    
26  public class ArrayBlockingQueueTest extends JSR166TestCase {  public class ArrayBlockingQueueTest extends JSR166TestCase {
27    
     public static class Fair extends BlockingQueueTest {  
         protected BlockingQueue emptyCollection() {  
             return populatedQueue(0, SIZE, 2 * SIZE, true);  
         }  
     }  
   
     public static class NonFair extends BlockingQueueTest {  
         protected BlockingQueue emptyCollection() {  
             return populatedQueue(0, SIZE, 2 * SIZE, false);  
         }  
     }  
   
28      public static void main(String[] args) {      public static void main(String[] args) {
29          main(suite(), args);          main(suite(), args);
30      }      }
# Line 52  Line 40 
40              public boolean isConcurrent() { return true; }              public boolean isConcurrent() { return true; }
41              public boolean permitsNulls() { return false; }              public boolean permitsNulls() { return false; }
42          }          }
43          return newTestSuite(ArrayBlockingQueueTest.class,  
44            return newTestSuite(
45                ArrayBlockingQueueTest.class,
46                              new Fair().testSuite(),                              new Fair().testSuite(),
47                              new NonFair().testSuite(),                              new NonFair().testSuite(),
48                              CollectionTest.testSuite(new Implementation()));                              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      /**      /**
64       * Returns a new queue of given size containing consecutive       * Returns a new queue of given size containing consecutive
65       * Integers 0 ... n - 1.       * Integers 0 ... n - 1.

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8