use of java8.util.concurrent.Phaser in project streamsupport by stefan-zobel.
the class PhaserTest method testBulkRegister1.
/**
* Invoking bulkRegister with a negative parameter throws an
* IllegalArgumentException
*/
public void testBulkRegister1() {
try {
new Phaser().bulkRegister(-1);
shouldThrow();
} catch (IllegalArgumentException success) {
}
}
Aggregations