vertx / io.vertx.ext.unit / TestCase

TestCase

interface TestCase

A test case object can be used to create a single test.

Author
Julien Viet

Functions

awaitSuccess

abstract fun awaitSuccess(): Unit
abstract fun awaitSuccess(timeout: Long, unit: TimeUnit): Unit
abstract fun awaitSuccess(vertx: Vertx): Unit

Assert the test case passes and block until it is executed. This method should be used from a non Vert.x context, like a Junit test.

abstract fun awaitSuccess(vertx: Vertx, timeout: Long, unit: TimeUnit): Unit

Assert the test case passes and block until it is executed. This method should be used from a non Vert.x

create

open static fun create(name: String, testCase: Handler<TestContext>): TestCase

Create a test case.