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.6 by dl, Sun Oct 5 23:00:40 2003 UTC vs.
Revision 1.9 by dl, Wed Jan 7 01:13:50 2004 UTC

# Line 1 | Line 1
1   /*
2 < * Written by members of JCP JSR-166 Expert Group and released to the
3 < * public domain. Use, modify, and redistribute this code in any way
4 < * without acknowledgement. Other contributors include Andrew Wright,
5 < * Jeffrey Hayes, Pat Fischer, Mike Judd.
2 > * Written by Doug Lea with assistance from members of JCP JSR-166
3 > * Expert Group and released to the public domain, as explained at
4 > * http://creativecommons.org/licenses/publicdomain
5 > * Other contributors include Andrew Wright, Jeffrey Hayes,
6 > * Pat Fisher, Mike Judd.
7   */
8  
9   import junit.framework.*;
# Line 21 | Line 22 | public class DelayQueueTest extends JSR1
22      private static final int NOCAP = Integer.MAX_VALUE;
23  
24      /**
25 <     * A delayed implmentation for testing.
25 >     * A delayed implementation for testing.
26       * Most  tests use Pseudodelays, where delays are all elapsed
27       * (so, no blocking solely for delays) but are still ordered
28       */
# Line 763 | Line 764 | public class DelayQueueTest extends JSR1
764      }
765  
766      /**
767 <     * toArray with incompatable array type throws CCE
767 >     * toArray with incompatible array type throws CCE
768       */
769      public void testToArray1_BadArg() {
770          try {
# Line 852 | Line 853 | public class DelayQueueTest extends JSR1
853  
854  
855      /**
856 <     * Dekayed actions do not occur until their delay elapses
856 >     * Delayed actions do not occur until their delay elapses
857       */
858      public void testDelay() {
859          DelayQueue q = new DelayQueue();
# Line 932 | Line 933 | public class DelayQueueTest extends JSR1
933              q.drainTo(l);
934              assertTrue(l.size() >= SIZE);
935              t.join();
936 <            assertTrue(q.size() + l.size() == SIZE+1);
936 >            assertTrue(q.size() + l.size() >= SIZE);
937          } catch(Exception e){
938              unexpectedException();
939          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines