13 |
|
import java.math.BigInteger; |
14 |
|
import java.security.*; |
15 |
|
|
16 |
< |
public class ExecutorsTest extends JSR166TestCase{ |
16 |
> |
public class ExecutorsTest extends JSR166TestCase { |
17 |
|
public static void main(String[] args) { |
18 |
|
junit.textui.TestRunner.run (suite()); |
19 |
|
} |
238 |
|
assertTrue(callable.done); |
239 |
|
assertEquals(Boolean.TRUE, f.get()); |
240 |
|
joinPool(p1); |
241 |
< |
} catch (RejectedExecutionException e){} |
242 |
< |
catch (Exception e){ |
241 |
> |
} catch (RejectedExecutionException e) {} |
242 |
> |
catch (Exception e) { |
243 |
|
e.printStackTrace(); |
244 |
|
unexpectedException(); |
245 |
|
} |
258 |
|
assertTrue(callable.done); |
259 |
|
assertEquals(Boolean.TRUE, f.get()); |
260 |
|
joinPool(p1); |
261 |
< |
} catch (RejectedExecutionException e){} |
262 |
< |
catch (Exception e){ |
261 |
> |
} catch (RejectedExecutionException e) {} |
262 |
> |
catch (Exception e) { |
263 |
|
e.printStackTrace(); |
264 |
|
unexpectedException(); |
265 |
|
} |
278 |
|
assertTrue(callable.done); |
279 |
|
assertEquals(Boolean.TRUE, f.get()); |
280 |
|
joinPool(p1); |
281 |
< |
} catch (RejectedExecutionException e){} |
282 |
< |
catch (Exception e){ |
281 |
> |
} catch (RejectedExecutionException e) {} |
282 |
> |
catch (Exception e) { |
283 |
|
e.printStackTrace(); |
284 |
|
unexpectedException(); |
285 |
|
} |