[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.30, Wed Aug 25 01:44:48 2010 UTC revision 1.31, Wed Sep 29 12:33:48 2010 UTC
# Line 479  Line 479 
479          final ArrayBlockingQueue q = new ArrayBlockingQueue(2);          final ArrayBlockingQueue q = new ArrayBlockingQueue(2);
480          Thread t = new Thread(new CheckedRunnable() {          Thread t = new Thread(new CheckedRunnable() {
481              public void realRun() throws InterruptedException {              public void realRun() throws InterruptedException {
482                    try {
483                  assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS));                  assertNull(q.poll(SHORT_DELAY_MS, MILLISECONDS));
484                  assertSame(zero, q.poll(LONG_DELAY_MS, MILLISECONDS));                  assertSame(zero, q.poll(LONG_DELAY_MS, MILLISECONDS));
                 try {  
485                      q.poll(LONG_DELAY_MS, MILLISECONDS);                      q.poll(LONG_DELAY_MS, MILLISECONDS);
486                      shouldThrow();                      shouldThrow();
487                  } catch (InterruptedException success) {}                  } catch (InterruptedException success) {}

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8