ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/DelayQueueTest.java
(Generate patch)

Comparing jsr166/src/test/tck/DelayQueueTest.java (file contents):
Revision 1.64 by jsr166, Wed Dec 31 19:05:42 2014 UTC vs.
Revision 1.66 by jsr166, Wed Dec 31 20:17:39 2014 UTC

# Line 126 | Line 126 | public class DelayQueueTest extends JSR1
126      private DelayQueue<PDelay> populatedQueue(int n) {
127          DelayQueue<PDelay> q = new DelayQueue<PDelay>();
128          assertTrue(q.isEmpty());
129 <        for (int i = n-1; i >= 0; i-=2)
129 >        for (int i = n-1; i >= 0; i -= 2)
130              assertTrue(q.offer(new PDelay(i)));
131 <        for (int i = (n & 1); i < n; i+=2)
131 >        for (int i = (n & 1); i < n; i += 2)
132              assertTrue(q.offer(new PDelay(i)));
133          assertFalse(q.isEmpty());
134          assertEquals(NOCAP, q.remainingCapacity());
# Line 289 | Line 289 | public class DelayQueueTest extends JSR1
289      public void testPut() {
290          DelayQueue q = new DelayQueue();
291          for (int i = 0; i < SIZE; ++i) {
292 <            PDelay I = new PDelay(i);
293 <            q.put(I);
294 <            assertTrue(q.contains(I));
292 >            PDelay x = new PDelay(i);
293 >            q.put(x);
294 >            assertTrue(q.contains(x));
295          }
296          assertEquals(SIZE, q.size());
297      }
# Line 561 | Line 561 | public class DelayQueueTest extends JSR1
561              assertTrue(q.removeAll(p));
562              assertEquals(SIZE-i, q.size());
563              for (int j = 0; j < i; ++j) {
564 <                PDelay I = (PDelay)(p.remove());
565 <                assertFalse(q.contains(I));
564 >                PDelay x = (PDelay)(p.remove());
565 >                assertFalse(q.contains(x));
566              }
567          }
568      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines