PostExpectationFutureX<T> extension
Sugar for stubbing Future-returning methods with mockito.
- on
-
- PostExpectation<
Future< T> >
- PostExpectation<
Methods
-
thenReturnAfter(
Duration delay, T value) → void -
Available on PostExpectation<
Stub to returnFuture< , provided by the PostExpectationFutureX extensionT> >valueafterdelay. -
thenReturnAsync(
T value) → void -
Available on PostExpectation<
Stub to returnFuture< , provided by the PostExpectationFutureX extensionT> >valueasynchronously. -
thenThrowAsync(
Object error) → void -
Available on PostExpectation<
Stub to throwFuture< , provided by the PostExpectationFutureX extensionT> >errorasynchronously.