PostExpectationStreamX<T> extension

Sugar for stubbing Stream-returning methods with mockito.

on

Methods

thenEmit(List<T> values) → void

Available on PostExpectation<Stream<T>>, provided by the PostExpectationStreamX extension

Stub to emit values in order.
thenEmitError(Object error) → void

Available on PostExpectation<Stream<T>>, provided by the PostExpectationStreamX extension

Stub to emit an error.
thenEmitSingle(T value) → void

Available on PostExpectation<Stream<T>>, provided by the PostExpectationStreamX extension

Stub to emit a single value.
thenEmpty() → void

Available on PostExpectation<Stream<T>>, provided by the PostExpectationStreamX extension

Stub to return an empty stream.