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.67 by jsr166, Wed Jun 1 16:08:04 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      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines