@Test public void newCall() { NoopClientCall<Void, Void> clientCall = new NoopClientCall<Void, Void>(); CallOptions callOptions = CallOptions.DEFAULT.withoutWaitForReady(); MethodDescriptor<Void, Void> method = TestMethodDescriptors.voidMethod(); when(mock.newCall(same(method), same(callOptions))).thenReturn(clientCall); assertSame(clientCall, forward.newCall(method, callOptions)); }
@Override public <RequestT, ResponseT> ClientCall<RequestT, ResponseT> newCall( MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) { return delegate.newCall(methodDescriptor, callOptions); }
ForwardingManagedChannel extends ManagedChannel { @Override public <RequestT, ResponseT> ClientCall<RequestT, ResponseT> newCall( MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) { return delegate.newCall(methodDescriptor, callOptions); } }
ForwardingManagedChannel extends ManagedChannel { @Override public <RequestT, ResponseT> ClientCall<RequestT, ResponseT> newCall( MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) { return delegate.newCall(methodDescriptor, callOptions); } ForwardingManagedChannel(ManagedChannel delegate); }
ForwardingManagedChannel extends ManagedChannel { @Override public <RequestT, ResponseT> ClientCall<RequestT, ResponseT> newCall( MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) { return delegate.newCall(methodDescriptor, callOptions); } ForwardingManagedChannel(ManagedChannel delegate); @Override ManagedChannel shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override ManagedChannel shutdownNow(); @Override boolean awaitTermination(long timeout, TimeUnit unit); @Override ClientCall<RequestT, ResponseT> newCall(
      MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions); @Override String authority(); @Override ConnectivityState getState(boolean requestConnection); @Override void notifyWhenStateChanged(ConnectivityState source, Runnable callback); @Override void resetConnectBackoff(); @Override void enterIdle(); @Override NameResolver getNameResolver(); @Override LoadBalancer getLoadBalancer(); @Override String toString(); }
ForwardingManagedChannel extends ManagedChannel { @Override public <RequestT, ResponseT> ClientCall<RequestT, ResponseT> newCall( MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) { return delegate.newCall(methodDescriptor, callOptions); } ForwardingManagedChannel(ManagedChannel delegate); @Override ManagedChannel shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override ManagedChannel shutdownNow(); @Override boolean awaitTermination(long timeout, TimeUnit unit); @Override ClientCall<RequestT, ResponseT> newCall(
      MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions); @Override String authority(); @Override ConnectivityState getState(boolean requestConnection); @Override void notifyWhenStateChanged(ConnectivityState source, Runnable callback); @Override void resetConnectBackoff(); @Override void enterIdle(); @Override NameResolver getNameResolver(); @Override LoadBalancer getLoadBalancer(); @Override String toString();  }