vertx / io.vertx.ext.unit / TestContext / assertTrue

assertTrue

abstract fun assertTrue(condition: Boolean): TestContext

Assert the specified condition is true. If the condition is false, an assertion error is thrown otherwise the execution continue.

Parameters

condition - the condition to assert

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

abstract fun assertTrue(condition: Boolean, message: String): TestContext

Assert the specified condition is true. If the condition is false, an assertion error is thrown otherwise the execution continue.

Parameters

condition - the condition to assert

message - the failure message

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