public interface TestCompletion
Modifier and Type | Method and Description |
---|---|
void |
await()
Cause the current thread to wait until the test suite completes.
If the current thread is interrupted, an exception will be thrown.
|
void |
await(long timeoutMillis)
Cause the current thread to wait until the test suite completes with a configurable timeout.
If completion times out or the current thread is interrupted, an exception will be thrown.
|
void |
awaitSuccess()
Cause the current thread to wait until the test suite completes and succeeds.
If the current thread is interrupted or the suite fails, an exception will be thrown.
|
void |
awaitSuccess(long timeoutMillis)
Cause the current thread to wait until the test suite 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.
|
void |
handler(Handler<AsyncResult<Void>> completionHandler)
Completion handler for the end of the test, the result is successful when all test cases pass otherwise
it is failed.
|
boolean |
isCompleted() |
boolean |
isFailed() |
boolean |
isSucceeded() |
void |
resolve(Future future)
Completes the future when all test cases of the test suite passes, otherwise fails it.
|
void resolve(Future future)
future
- the future to resolveboolean isCompleted()
boolean isSucceeded()
boolean isFailed()
void handler(Handler<AsyncResult<Void>> completionHandler)
completionHandler
- the completion handlervoid await()
void await(long timeoutMillis)
timeoutMillis
- the timeout in millisecondsvoid awaitSuccess()
void awaitSuccess(long timeoutMillis)
timeoutMillis
- the timeout in millisecondsCopyright © 2015. All Rights Reserved.