19 |
|
|
20 |
|
public class PriorityQueueTest extends JSR166TestCase { |
21 |
|
public static void main(String[] args) { |
22 |
< |
junit.textui.TestRunner.run(suite()); |
22 |
> |
main(suite(), args); |
23 |
|
} |
24 |
|
public static Test suite() { |
25 |
|
return new TestSuite(PriorityQueueTest.class); |
189 |
|
* Offer of non-Comparable throws CCE |
190 |
|
*/ |
191 |
|
public void testOfferNonComparable() { |
192 |
+ |
PriorityQueue q = new PriorityQueue(1); |
193 |
|
try { |
193 |
– |
PriorityQueue q = new PriorityQueue(1); |
194 |
– |
q.offer(new Object()); |
194 |
|
q.offer(new Object()); |
195 |
|
q.offer(new Object()); |
196 |
|
shouldThrow(); |