public class TestStreams
extends java.lang.Object
StreamObserver
s.Modifier and Type | Class and Description |
---|---|
static class |
TestStreams.Builder<T>
A builder for a test
CallStreamObserver that performs various callbacks. |
Constructor and Description |
---|
TestStreams() |
Modifier and Type | Method and Description |
---|---|
static <T> TestStreams.Builder<T> |
withOnNext(java.util.function.Consumer<T> onNext)
Creates a test
CallStreamObserver TestStreams.Builder that forwards
StreamObserver.onNext(V) calls to the supplied Consumer . |
public static <T> TestStreams.Builder<T> withOnNext(java.util.function.Consumer<T> onNext)
CallStreamObserver
TestStreams.Builder
that forwards
StreamObserver.onNext(V)
calls to the supplied Consumer
.