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.4 by jsr166, Sat Aug 1 22:09:13 2009 UTC vs.
Revision 1.5 by jsr166, Tue Aug 4 09:52:04 2009 UTC

# Line 172 | Line 172 | public class RecursiveActionTest extends
172                          FibAction f = new FibAction(8);
173                          f.fork();
174                          f.get(5L, null);
175 +                        shouldThrow();
176                      } catch (NullPointerException success) {
177                      } catch (Exception ex) {
178                          unexpectedException();
# Line 310 | Line 311 | public class RecursiveActionTest extends
311                          f.fork();
312                          f.get();
313                          shouldThrow();
314 <                    } catch (Exception success) {
314 >                    } catch (ExecutionException success) {
315 >                    } catch (Exception ex) {
316 >                        unexpectedException(ex);
317                      }
318                  }
319              };
# Line 328 | Line 331 | public class RecursiveActionTest extends
331                          f.fork();
332                          f.get(5L, TimeUnit.SECONDS);
333                          shouldThrow();
334 <                    } catch (Exception success) {
334 >                    } catch (ExecutionException success) {
335 >                    } catch (Exception ex) {
336 >                        unexpectedException(ex);
337                      }
338                  }
339              };
# Line 440 | Line 445 | public class RecursiveActionTest extends
445                          f.fork();
446                          f.get();
447                          shouldThrow();
448 <                    } catch (Exception success) {
448 >                    } catch (CancellationException success) {
449 >                    } catch (Exception ex) {
450 >                        unexpectedException(ex);
451                      }
452                  }
453              };
# Line 459 | Line 466 | public class RecursiveActionTest extends
466                          f.fork();
467                          f.get(5L, TimeUnit.SECONDS);
468                          shouldThrow();
469 <                    } catch (Exception success) {
469 >                    } catch (CancellationException success) {
470 >                    } catch (Exception ex) {
471 >                        unexpectedException(ex);
472                      }
473                  }
474              };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines