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

Comparing jsr166/src/test/tck/RecursiveActionTest.java (file contents):
Revision 1.7 by jsr166, Wed Aug 5 01:17:30 2009 UTC vs.
Revision 1.9 by jsr166, Sat Nov 21 02:07:27 2009 UTC

# Line 11 | Line 11 | import java.util.*;
11   public class RecursiveActionTest extends JSR166TestCase {
12  
13      public static void main(String[] args) {
14 <        junit.textui.TestRunner.run (suite());
14 >        junit.textui.TestRunner.run (suite());
15      }
16      public static Test suite() {
17 <        return new TestSuite(RecursiveActionTest.class);
17 >        return new TestSuite(RecursiveActionTest.class);
18      }
19  
20      static final ForkJoinPool mainPool = new ForkJoinPool();
# Line 162 | Line 162 | public class RecursiveActionTest extends
162       */
163      public void testForkTimedGetNPE() {
164          RecursiveAction a = new RecursiveAction() {
165 <                public void compute() {
166 <                    try {
167 <                        FibAction f = new FibAction(8);
168 <                        f.fork();
169 <                        f.get(5L, null);
170 <                        shouldThrow();
171 <                    } catch (NullPointerException success) {
172 <                    } catch (Exception ex) {
173 <                        unexpectedException(ex);
174 <                    }
165 >            public void compute() {
166 >                try {
167 >                    FibAction f = new FibAction(8);
168 >                    f.fork();
169 >                    f.get(5L, null);
170 >                    shouldThrow();
171 >                } catch (NullPointerException success) {
172 >                } catch (Exception ex) {
173 >                    unexpectedException(ex);
174                  }
175 <            };
175 >            }};
176          mainPool.invoke(a);
177      }
178  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines