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.59 by jsr166, Sat Feb 28 19:59:23 2015 UTC vs.
Revision 1.61 by jsr166, Sat Apr 25 04:55:31 2015 UTC

# Line 38 | Line 38 | public class PriorityBlockingQueueTest e
38      }
39  
40      public static void main(String[] args) {
41 <        junit.textui.TestRunner.run(suite());
41 >        main(suite(), args);
42      }
43  
44      public static Test suite() {
# Line 197 | Line 197 | public class PriorityBlockingQueueTest e
197       * Offer of non-Comparable throws CCE
198       */
199      public void testOfferNonComparable() {
200 +        PriorityBlockingQueue q = new PriorityBlockingQueue(1);
201          try {
201            PriorityBlockingQueue q = new PriorityBlockingQueue(1);
202            q.offer(new Object());
202              q.offer(new Object());
203              q.offer(new Object());
204              shouldThrow();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines