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
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. 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 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. 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 isCompleted(): Boolean |
|
abstract fun isFailed(): Boolean |
|
abstract fun isSucceeded(): Boolean |