# | 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(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |