Properties

finishes → Matcher

Matches a Future that completes successfully with a value. Note that this creates an asynchronous expectation. The call to expect() that includes this will return immediately and execution will continue. Later, when the future completes, the actual expectation will run.

read / write
throwsInvalidOperationError → Matcher

read-only
throwsNullArgumentError → Matcher

read-only

Functions

expectFutureComplete(Future future, [Action1 onComplete(T param)]) → void

expectFutureFail(Future future, [void onException(error)]) → void

finishesWith(matcher) → Matcher

Matches a Future that completes succesfully with a value that matches matcher. Note that this creates an asynchronous expectation. The call to expect() that includes this will return immediately and execution will continue. Later, when the future completes, the actual expectation will run.

pending() → void

Classes

EventWatcher