completion function

Matcher completion (
  1. dynamic matcher,
  2. [@deprecated String description]

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.

To test that a Future completes with an exception, you can use throws and throwsA.

This returns an AsyncMatcher, so expect won't complete until the matched future does.


Matcher completion(matcher, [@deprecated String description]) =>