vertx / io.vertx.ext.unit / TestCase / awaitSuccess

awaitSuccess

abstract fun awaitSuccess(): Unit

Assert the test case passes and block until it is executed. This method should be used from a non Vert.x context, like a Junit test.

abstract fun awaitSuccess(timeout: Long, unit: TimeUnit): Unit

Assert the test case passes and block until it is executed. This method should be used from a non Vert.x context, like a Junit test.

Parameters

timeout - the suite timeout expressed in the unit argument

unit - the suite timeout unit

abstract fun awaitSuccess(vertx: Vertx): Unit

Assert the test case passes and block until it is executed. This method should be used from a non Vert.x context, like a Junit test.

Parameters

vertx - the vert.x instance

abstract fun awaitSuccess(vertx: Vertx, timeout: Long, unit: TimeUnit): Unit

Assert the test case passes and block until it is executed. This method should be used from a non Vert.x

Parameters

vertx - the vert.x instance

timeout - the suite timeout expressed in the unit argument

unit - the suite timeout unit