39 |
|
} |
40 |
|
|
41 |
|
/** |
42 |
< |
* Creating with negative parties throws IAE |
42 |
> |
* Creating with negative parties throws IllegalArgumentException |
43 |
|
*/ |
44 |
|
public void testConstructor1() { |
45 |
|
try { |
49 |
|
} |
50 |
|
|
51 |
|
/** |
52 |
< |
* Creating with negative parties and no action throws IAE |
52 |
> |
* Creating with negative parties and no action throws |
53 |
> |
* IllegalArgumentException |
54 |
|
*/ |
55 |
|
public void testConstructor2() { |
56 |
|
try { |
308 |
|
c.await(); |
309 |
|
shouldThrow(); |
310 |
|
} |
311 |
< |
catch (BrokenBarrierException ok) {} |
311 |
< |
catch (InterruptedException ok) {} |
311 |
> |
catch (BrokenBarrierException | InterruptedException ok) {} |
312 |
|
}}}); |
313 |
|
|
314 |
|
for (int i = 0; i < 4; i++) { |