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.60 by jsr166, Tue Feb 21 02:04:17 2012 UTC vs.
Revision 1.62 by jsr166, Thu May 30 03:28:55 2013 UTC

# Line 62 | Line 62 | public class DelayQueueTest extends JSR1
62              return (other instanceof PDelay) &&
63                  this.pseudodelay == ((PDelay)other).pseudodelay;
64          }
65 +        // suppress [overrides] javac warning
66 +        public int hashCode() { return pseudodelay; }
67          public long getDelay(TimeUnit ignore) {
68              return Integer.MIN_VALUE + pseudodelay;
69          }
# Line 97 | Line 99 | public class DelayQueueTest extends JSR1
99              return other.trigger == trigger;
100          }
101  
102 +        // suppress [overrides] javac warning
103 +        public int hashCode() { return (int) trigger; }
104 +
105          public long getDelay(TimeUnit unit) {
106              long n = trigger - System.nanoTime();
107              return unit.convert(n, TimeUnit.NANOSECONDS);
# Line 646 | Line 651 | public class DelayQueueTest extends JSR1
651              public void realRun() throws InterruptedException {
652                  assertNull(q.poll());
653                  threadsStarted.await();
654 <                assertTrue(null != q.poll(LONG_DELAY_MS, MILLISECONDS));
654 >                assertNotNull(q.poll(LONG_DELAY_MS, MILLISECONDS));
655                  checkEmpty(q);
656              }});
657  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines