vertx / io.vertx.ext.unit / TestCompletion

TestCompletion

interface TestCompletion : Completion<Void>

This object provides callback-ability for the end of a test suite, the completion succeeds when all tests pass otherwise it fails.

Author
Julien Viet

Inherited Functions

await

abstract fun await(): Unit

Cause the current thread to wait until this completion completes. If the current thread is interrupted, an exception will be thrown.

abstract fun await(timeoutMillis: Long): Unit

Cause the current thread to wait until this completion completes with a configurable timeout. If completion times out or the current thread is interrupted, an exception will be thrown.

awaitSuccess

abstract fun awaitSuccess(timeoutMillis: Long): Unit

Cause the current thread to wait until this completion completes and succeeds with a configurable timeout. If completion times out or the current thread is interrupted or the suite fails, an exception will be thrown.

abstract fun awaitSuccess(): Unit

Cause the current thread to wait until this completion completes and succeeds. If the current thread is interrupted or the suite fails, an exception will be thrown.

isCompleted

abstract fun isCompleted(): Boolean

isFailed

abstract fun isFailed(): Boolean

isSucceeded

abstract fun isSucceeded(): Boolean