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.3 by dl, Sun Sep 14 20:42:40 2003 UTC vs.
Revision 1.4 by dl, Sat Sep 20 00:31:57 2003 UTC

# Line 102 | Line 102 | public class PriorityQueueTest extends J
102  
103      public void testConstructor7(){
104          try {
105 <            PriorityQueue q = new PriorityQueue(SIZE, new MyReverseComparator());
105 >            MyReverseComparator cmp = new MyReverseComparator();
106 >            PriorityQueue q = new PriorityQueue(SIZE, cmp);
107 >            assertEquals(cmp, q.comparator());
108              Integer[] ints = new Integer[SIZE];
109              for (int i = 0; i < SIZE; ++i)
110                  ints[i] = new Integer(i);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines