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

Comparing jsr166/src/test/tck/ExchangerTest.java (file contents):
Revision 1.17 by jsr166, Sun May 15 16:58:16 2011 UTC vs.
Revision 1.19 by jsr166, Sun May 22 20:05:57 2011 UTC

# Line 117 | Line 117 | public class ExchangerTest extends JSR16
117      /**
118       * If one exchanging thread is interrupted, another succeeds.
119       */
120 <    public void testReplacementAfterExchange() throws InterruptedException {
120 >    public void testReplacementAfterExchange() {
121          final Exchanger e = new Exchanger();
122          final CountDownLatch exchanged = new CountDownLatch(2);
123          final CountDownLatch interrupted = new CountDownLatch(1);
# Line 142 | Line 142 | public class ExchangerTest extends JSR16
142  
143          await(exchanged);
144          t1.interrupt();
145        interrupted.countDown();
145          awaitTermination(t1);
146 +        interrupted.countDown();
147          awaitTermination(t2);
148          awaitTermination(t3);
149      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines