41 |
|
try { |
42 |
|
new Phaser(-1); |
43 |
|
shouldThrow(); |
44 |
< |
} catch (IllegalArgumentException success) { |
45 |
< |
} |
44 |
> |
} catch (IllegalArgumentException success) {} |
45 |
|
} |
46 |
|
|
47 |
|
/** |
61 |
|
try { |
62 |
|
new Phaser(new Phaser(), -1); |
63 |
|
shouldThrow(); |
64 |
< |
} catch (IllegalArgumentException success) { |
66 |
< |
} |
64 |
> |
} catch (IllegalArgumentException success) {} |
65 |
|
} |
66 |
|
|
67 |
|
/** |
98 |
|
try { |
99 |
|
phaser.register(); |
100 |
|
shouldThrow(); |
101 |
< |
} catch (IllegalStateException success) { |
104 |
< |
} |
101 |
> |
} catch (IllegalStateException success) {} |
102 |
|
} |
103 |
|
|
104 |
|
/** |
138 |
|
try { |
139 |
|
new Phaser().bulkRegister(-1); |
140 |
|
shouldThrow(); |
141 |
< |
} catch (IllegalArgumentException success) { |
145 |
< |
} |
141 |
> |
} catch (IllegalArgumentException success) {} |
142 |
|
} |
143 |
|
|
144 |
|
/** |
159 |
|
try { |
160 |
|
new Phaser().bulkRegister(1 << 16); |
161 |
|
shouldThrow(); |
162 |
< |
} catch (IllegalStateException success) { |
167 |
< |
} |
162 |
> |
} catch (IllegalStateException success) {} |
163 |
|
} |
164 |
|
|
165 |
|
/** |
224 |
|
Phaser phaser = new Phaser(); |
225 |
|
phaser.arriveAndDeregister(); |
226 |
|
shouldThrow(); |
227 |
< |
} catch (IllegalStateException success) { |
233 |
< |
} |
227 |
> |
} catch (IllegalStateException success) {} |
228 |
|
} |
229 |
|
|
230 |
|
/** |
437 |
|
Phaser phaser = new Phaser(); |
438 |
|
phaser.arriveAndAwaitAdvance(); |
439 |
|
shouldThrow(); |
440 |
< |
} catch (IllegalStateException success) { |
447 |
< |
} |
440 |
> |
} catch (IllegalStateException success) {} |
441 |
|
} |
442 |
|
|
443 |
|
/** |