public abstract class AbstractTransportTest extends Object
Modifier and Type | Field and Description |
---|---|
protected TestServiceGrpc.TestService |
asyncStub |
protected TestServiceGrpc.TestServiceBlockingStub |
blockingStub |
protected ChannelImpl |
channel |
static Metadata.Key<Messages.SimpleContext> |
METADATA_KEY |
Constructor and Description |
---|
AbstractTransportTest() |
Modifier and Type | Method and Description |
---|---|
protected static void |
assertSuccess(StreamRecorder<?> recorder) |
void |
cancelAfterBegin() |
void |
cancelAfterFirstResponse() |
void |
clientStreaming() |
protected abstract ChannelImpl |
createChannel() |
void |
emptyStream() |
void |
emptyUnary() |
void |
exchangeContextStreamingCall() |
void |
exchangeContextUnaryCall() |
void |
fullDuplexCallShouldSucceed() |
void |
gracefulShutdown() |
void |
halfDuplexCallShouldSucceed() |
void |
largeUnary() |
void |
pingPong() |
void |
serverStreaming() |
void |
serverStreamingShouldBeFlowControlled() |
void |
setUp()
Must be called by the subclass setup method if overridden.
|
protected static void |
startStaticServer(AbstractServerBuilder<?> builder) |
protected static void |
stopStaticServer() |
void |
tearDown()
Clean up.
|
protected int |
unaryPayloadLength() |
void |
veryLargeRequest() |
void |
veryLargeResponse() |
public static final Metadata.Key<Messages.SimpleContext> METADATA_KEY
protected ChannelImpl channel
protected TestServiceGrpc.TestServiceBlockingStub blockingStub
protected TestServiceGrpc.TestService asyncStub
protected static void startStaticServer(AbstractServerBuilder<?> builder)
protected static void stopStaticServer()
public void setUp()
protected abstract ChannelImpl createChannel()
public void fullDuplexCallShouldSucceed() throws Exception
Exception
public void halfDuplexCallShouldSucceed() throws Exception
Exception
public void serverStreamingShouldBeFlowControlled() throws Exception
Exception
public void exchangeContextStreamingCall() throws Exception
Exception
protected int unaryPayloadLength()
protected static void assertSuccess(StreamRecorder<?> recorder)