Constructor and Description |
---|
TestCompletion(TestCompletion delegate) |
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.
|
Object |
getDelegate() |
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.
|
rx.Observable<Void> |
handlerObservable()
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() |
static TestCompletion |
newInstance(TestCompletion arg) |
void |
resolve(Future future)
Completes the future when all test cases of the test suite passes, otherwise fails it.
|
public TestCompletion(TestCompletion delegate)
public Object getDelegate()
public void resolve(Future future)
future
- the future to resolvepublic boolean isCompleted()
public boolean isSucceeded()
public boolean isFailed()
public void handler(Handler<AsyncResult<Void>> completionHandler)
completionHandler
- the completion handlerpublic rx.Observable<Void> handlerObservable()
public void await()
public void await(long timeoutMillis)
timeoutMillis
- the timeout in millisecondspublic void awaitSuccess()
public void awaitSuccess(long timeoutMillis)
timeoutMillis
- the timeout in millisecondspublic static TestCompletion newInstance(TestCompletion arg)
Copyright © 2015. All Rights Reserved.