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

assertEquals

open fun assertEquals(expected: Any, actual: Any): TestContext

Assert the expected argument is equals to the actual argument. If the arguments are not equals an assertion error is thrown otherwise the execution continue.

Parameters

expected - the object the actual object is supposedly equals to

actual - the actual object to test

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

open fun assertEquals(expected: Any, actual: Any, message: String): TestContext

Assert the expected argument is equals to the actual argument. If the arguments are not equals an assertion error is thrown otherwise the execution continue.

Parameters

expected - the object the actual object is supposedly equals to

actual - the actual object to test

message - the failure message

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