Package org.apache.beam.sdk.fn.test
Class TestStreams
- java.lang.Object
-
- org.apache.beam.sdk.fn.test.TestStreams
-
public class TestStreams extends java.lang.ObjectUtility methods which enable testing ofStreamObservers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestStreams.Builder<T>A builder for a testCallStreamObserverthat performs various callbacks.
-
Constructor Summary
Constructors Constructor Description TestStreams()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TestStreams.Builder<T>withOnNext(java.util.function.Consumer<T> onNext)Creates a testCallStreamObserverTestStreams.Builderthat forwardsStreamObserver.onNext(V)calls to the suppliedConsumer.
-
-
-
Method Detail
-
withOnNext
public static <T> TestStreams.Builder<T> withOnNext(java.util.function.Consumer<T> onNext)
Creates a testCallStreamObserverTestStreams.Builderthat forwardsStreamObserver.onNext(V)calls to the suppliedConsumer.
-
-