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

Comparing jsr166/src/test/tck/PriorityBlockingQueueTest.java (file contents):
Revision 1.66 by jsr166, Tue Oct 6 00:03:55 2015 UTC vs.
Revision 1.68 by jsr166, Sat Aug 6 17:02:49 2016 UTC

# Line 200 | Line 200 | public class PriorityBlockingQueueTest e
200          PriorityBlockingQueue q = new PriorityBlockingQueue(1);
201          try {
202              q.offer(new Object());
203            q.offer(new Object());
203              shouldThrow();
204 <        } catch (ClassCastException success) {}
204 >        } catch (ClassCastException success) {
205 >            assertTrue(q.isEmpty());
206 >            assertEquals(0, q.size());
207 >            assertNull(q.poll());
208 >        }
209      }
210  
211      /**
# Line 407 | Line 410 | public class PriorityBlockingQueueTest e
410              }});
411  
412          aboutToWait.await();
413 <        waitForThreadToEnterWaitState(t, LONG_DELAY_MS);
413 >        waitForThreadToEnterWaitState(t);
414          t.interrupt();
415          awaitTermination(t);
416      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines