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

Comparing jsr166/src/test/tck/SynchronousQueueTest.java (file contents):
Revision 1.29 by jsr166, Thu Nov 18 20:18:43 2010 UTC vs.
Revision 1.32 by jsr166, Thu Apr 14 22:55:08 2011 UTC

# Line 1 | Line 1
1   /*
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
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   * Other contributors include Andrew Wright, Jeffrey Hayes,
6   * Pat Fisher, Mike Judd.
7   */
# Line 159 | Line 159 | public class SynchronousQueueTest extend
159              q.put(null);
160              shouldThrow();
161          } catch (NullPointerException success) {}
162 <     }
162 >    }
163  
164      /**
165       * put blocks interruptibly if no active taker
# Line 397 | Line 397 | public class SynchronousQueueTest extend
397          long t0 = System.nanoTime();
398          assertTrue(q.offer(zero, LONG_DELAY_MS, MILLISECONDS));
399          assertTrue(millisElapsedSince(t0) < MEDIUM_DELAY_MS);
400 <        
400 >
401          t.interrupt();
402          awaitTermination(t, MEDIUM_DELAY_MS);
403      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines