[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.71, Sat Aug 6 17:02:49 2016 UTC revision 1.72, Sun Oct 16 20:44:18 2016 UTC
# Line 48  Line 48 
48    
49      /**      /**
50       * Returns a new queue of given size containing consecutive       * Returns a new queue of given size containing consecutive
51       * Integers 0 ... n.       * Integers 0 ... n - 1.
52       */       */
53      private ArrayBlockingQueue<Integer> populatedQueue(int n) {      private ArrayBlockingQueue<Integer> populatedQueue(int n) {
54          ArrayBlockingQueue<Integer> q = new ArrayBlockingQueue<Integer>(n);          ArrayBlockingQueue<Integer> q = new ArrayBlockingQueue<Integer>(n);
# Line 58  Line 58 
58          assertFalse(q.isEmpty());          assertFalse(q.isEmpty());
59          assertEquals(0, q.remainingCapacity());          assertEquals(0, q.remainingCapacity());
60          assertEquals(n, q.size());          assertEquals(n, q.size());
61            assertEquals((Integer) 0, q.peek());
62          return q;          return q;
63      }      }
64    

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8