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

Comparing jsr166/src/test/tck/CyclicBarrierTest.java (file contents):
Revision 1.11 by jsr166, Mon Nov 16 05:30:07 2009 UTC vs.
Revision 1.12 by jsr166, Sat Nov 21 02:07:26 2009 UTC

# Line 14 | Line 14 | import java.util.concurrent.atomic.*;
14  
15   public class CyclicBarrierTest extends JSR166TestCase {
16      public static void main(String[] args) {
17 <        junit.textui.TestRunner.run (suite());
17 >        junit.textui.TestRunner.run (suite());
18      }
19      public static Test suite() {
20 <        return new TestSuite(CyclicBarrierTest.class);
20 >        return new TestSuite(CyclicBarrierTest.class);
21      }
22  
23      private volatile int countAction;
# Line 50 | Line 50 | public class CyclicBarrierTest extends J
50       */
51      public void testGetParties() {
52          CyclicBarrier b = new CyclicBarrier(2);
53 <        assertEquals(2, b.getParties());
53 >        assertEquals(2, b.getParties());
54          assertEquals(0, b.getNumberWaiting());
55      }
56  
# Line 95 | Line 95 | public class CyclicBarrierTest extends J
95       */
96      public void testTwoParties() {
97          final CyclicBarrier b = new CyclicBarrier(2);
98 <        Thread t = new Thread(new Runnable() {
99 <                public void run() {
98 >        Thread t = new Thread(new Runnable() {
99 >                public void run() {
100                      try {
101                          b.await();
102                          b.await();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines