vertx / io.vertx.reactivex.ext.unit / TestContext / assertNotNull

assertNotNull

open fun assertNotNull(expected: Any): TestContext

Assert the expected argument is not null. If the argument is null, an assertion error is thrown otherwise the execution continue.

Parameters

expected - the argument being asserted to be not null

Return
a reference to this, so the API can be used fluently

open fun assertNotNull(expected: Any, message: String): TestContext

Assert the expected argument is not null. If the argument is null, an assertion error is thrown otherwise the execution continue.

Parameters

expected - the argument being asserted to be not null

message - the failure message

Return
a reference to this, so the API can be used fluently