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

Comparing jsr166/src/test/tck/PriorityQueueTest.java (file contents):
Revision 1.36 by jsr166, Sun May 24 01:42:14 2015 UTC vs.
Revision 1.37 by jsr166, Wed Jun 1 16:08:04 2016 UTC

# Line 191 | Line 191 | public class PriorityQueueTest extends J
191          PriorityQueue q = new PriorityQueue(1);
192          try {
193              q.offer(new Object());
194            q.offer(new Object());
194              shouldThrow();
195 <        } catch (ClassCastException success) {}
195 >        } catch (ClassCastException success) {
196 >            assertTrue(q.isEmpty());
197 >            assertEquals(0, q.size());
198 >            assertNull(q.poll());
199 >        }
200      }
201  
202      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines