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.41 by jsr166, Sat Mar 11 17:33:32 2017 UTC vs.
Revision 1.44 by jsr166, Fri Aug 4 03:30:21 2017 UTC

# Line 42 | Line 42 | public class PriorityQueueTest extends J
42       * Returns a new queue of given size containing consecutive
43       * Integers 0 ... n - 1.
44       */
45 <    private PriorityQueue<Integer> populatedQueue(int n) {
45 >    private static PriorityQueue<Integer> populatedQueue(int n) {
46          PriorityQueue<Integer> q = new PriorityQueue<>(n);
47          assertTrue(q.isEmpty());
48          for (int i = n - 1; i >= 0; i -= 2)
# Line 63 | Line 63 | public class PriorityQueueTest extends J
63      }
64  
65      /**
66 <     * Constructor throws IAE if capacity argument nonpositive
66 >     * Constructor throws IllegalArgumentException if capacity argument nonpositive
67       */
68      public void testConstructor2() {
69          try {
# Line 495 | Line 495 | public class PriorityQueueTest extends J
495      }
496  
497      /**
498 <     * A deserialized serialized queue has same elements
498 >     * A deserialized/reserialized queue has same elements
499       */
500      public void testSerialization() throws Exception {
501          Queue x = populatedQueue(SIZE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines