88 |
|
} |
89 |
|
|
90 |
|
/** |
91 |
< |
* Registering any more then 65536 parties causes IllegalStateExceptiom |
91 |
> |
* Registering more than 65536 parties causes IllegalStateException |
92 |
|
*/ |
93 |
|
public void testRegister2() { |
94 |
|
Phaser phaser = new Phaser(0); |
137 |
|
|
138 |
|
/** |
139 |
|
* Invoking bulkRegister with a negative parameter throws an |
140 |
< |
* IllegalArgumentExceptiom |
140 |
> |
* IllegalArgumentException |
141 |
|
*/ |
142 |
|
public void testBulkRegister1() { |
143 |
|
try { |
158 |
|
} |
159 |
|
|
160 |
|
/** |
161 |
< |
* Registering with a number of parties greater then or equal to 1<<16 |
162 |
< |
* throws IllegalStateExceptiom. |
161 |
> |
* Registering with a number of parties greater than or equal to 1<<16 |
162 |
> |
* throws IllegalStateException. |
163 |
|
*/ |
164 |
|
public void testBulkRegister3() { |
165 |
|
try { |
216 |
|
} |
217 |
|
|
218 |
|
/** |
219 |
< |
* arrive() returns a negative number if the Phaser is termindated |
219 |
> |
* arrive() returns a negative number if the Phaser is terminated |
220 |
|
*/ |
221 |
|
public void testArrive3() { |
222 |
|
Phaser phaser = new Phaser(1); |
227 |
|
|
228 |
|
/** |
229 |
|
* arriveAndDeregister() throws IllegalStateException if number of |
230 |
< |
* registered or unnarived parties would become negative |
230 |
> |
* registered or unarrived parties would become negative |
231 |
|
*/ |
232 |
|
public void testArriveAndDeregister1() { |
233 |
|
try { |
240 |
|
} |
241 |
|
|
242 |
|
/** |
243 |
< |
* arriveAndDeregister derigisters reduces the number of arrived parties |
243 |
> |
* arriveAndDeregister deregisters reduces the number of arrived parties |
244 |
|
*/ |
245 |
|
public void testArriveAndDergeister2() { |
246 |
|
final Phaser phaser = new Phaser(1); |