vertx / io.vertx.junit5 / VertxTestContext / verify

verify

fun verify(block: Runnable): VertxTestContext

Allow verifications and assertions to be made.

This method allows any assertion API to be used. The semantic is that the verification is successful when no exception is being thrown upon calling block, otherwise the context fails with that exception.

Parameters

block - a block of code to execute.

Return
this context.