use of io.grpc.stub.AbstractStubTest.NoopStub in project grpc-java by grpc.
the class AbstractStubTest method defaultCallOptions.
@Test
public void defaultCallOptions() {
NoopStub stub = NoopStub.newStub(new StubFactory<NoopStub>() {
@Override
public NoopStub newStub(Channel channel, CallOptions callOptions) {
return create(channel, callOptions);
}
}, channel, CallOptions.DEFAULT);
assertThat(stub.getCallOptions().getOption(ClientCalls.STUB_TYPE_OPTION)).isNull();
}
Aggregations