vertx / io.vertx.ext.unit / TestContext / assertNull

assertNull

abstract fun assertNull(expected: Any): TestContext

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

Parameters

expected - the argument being asserted to be null

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

abstract fun assertNull(expected: Any, message: String): TestContext

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

Parameters

expected - the argument being asserted to be null

message - the failure message

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