vertx / io.vertx.junit5 / VertxTestContext / succeeding

succeeding

fun <T : Any> succeeding(): Handler<AsyncResult<T>>

Create an asynchronous result handler that expects a success.

Parameters

- the asynchronous result type.

Return
the handler.

fun <T : Any> succeeding(nextHandler: Handler<T>): Handler<AsyncResult<T>>

Create an asynchronous result handler that expects a success, and passes the value to another handler.

Parameters

nextHandler - the value handler to call on success.

- the asynchronous result type.

Return
the handler.