261 |
|
* the phase number increments correctly when tripping the barrier |
262 |
|
*/ |
263 |
|
public void testPhaseIncrement1() { |
264 |
< |
for (int size = 1; size < nine; size++) { |
264 |
> |
for (int size = 1; size < 9; size++) { |
265 |
|
final Phaser phaser = new Phaser(size); |
266 |
|
for (int index = 0; index <= (1 << size); index++) { |
267 |
|
int phase = phaser.arrive(); |
453 |
|
/** |
454 |
|
* awaitAdvanceInterruptibly blocks interruptibly |
455 |
|
*/ |
456 |
< |
public void testAwaitAdvanceInterruptibly_interruptible() throws InterruptedException { |
456 |
> |
public void testAwaitAdvanceInterruptibly_Interruptible() throws InterruptedException { |
457 |
|
final Phaser phaser = new Phaser(1); |
458 |
|
final CountDownLatch pleaseInterrupt = new CountDownLatch(2); |
459 |
|
|