PostExpectationFutureX<T> extension

Sugar for stubbing Future-returning methods with mockito.

on

Methods

thenReturnAfter(Duration delay, T value) → void

Available on PostExpectation<Future<T>>, provided by the PostExpectationFutureX extension

Stub to return value after delay.
thenReturnAsync(T value) → void

Available on PostExpectation<Future<T>>, provided by the PostExpectationFutureX extension

Stub to return value asynchronously.
thenThrowAsync(Object error) → void

Available on PostExpectation<Future<T>>, provided by the PostExpectationFutureX extension

Stub to throw error asynchronously.