[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.51, Sat Nov 26 05:19:17 2011 UTC revision 1.52, Sat Nov 26 05:42:14 2011 UTC
# Line 822  Line 822 
822              ArrayList l = new ArrayList();              ArrayList l = new ArrayList();
823              q.drainTo(l, i);              q.drainTo(l, i);
824              int k = (i < SIZE) ? i : SIZE;              int k = (i < SIZE) ? i : SIZE;
825              assertEquals(l.size(), k);              assertEquals(k, l.size());
826              assertEquals(q.size(), SIZE-k);              assertEquals(SIZE-k, q.size());
827              for (int j = 0; j < k; ++j)              for (int j = 0; j < k; ++j)
828                  assertEquals(l.get(j), new Integer(j));                  assertEquals(l.get(j), new Integer(j));
829              while (q.poll() != null) ;              while (q.poll() != null) ;

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8