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

Comparing jsr166/src/test/tck/LinkedTransferQueueTest.java (file contents):
Revision 1.32 by jsr166, Fri Oct 29 06:21:16 2010 UTC vs.
Revision 1.34 by jsr166, Fri Oct 29 07:01:51 2010 UTC

# Line 910 | Line 910 | public class LinkedTransferQueueTest ext
910          Thread t = newStartedThread(new CheckedRunnable() {
911              public void realRun() throws InterruptedException {
912                  threadStarted.countDown();
913 <                q.transfer(SIZE);
913 >                q.transfer(five);
914                  checkEmpty(q);
915              }});
916  
917          threadStarted.await();
918          waitForThreadToEnterWaitState(t, SMALL_DELAY_MS);
919        assertTrue(t.isAlive());
919          assertEquals(1, q.size());
920 <        assertEquals(SIZE, (int) q.poll());
920 >        assertSame(five, q.poll());
921          checkEmpty(q);
922          awaitTermination(t, MEDIUM_DELAY_MS);
923      }
# Line 1095 | Line 1094 | public class LinkedTransferQueueTest ext
1094      }
1095  
1096      /**
1097 <     * tryTransfer gives up after the timeout and return false
1097 >     * tryTransfer gives up after the timeout and returns false
1098       */
1099      public void testTryTransfer6() throws InterruptedException {
1100          final LinkedTransferQueue q = new LinkedTransferQueue();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines