use of io.grpc.internal.ClientTransportFactory in project grpc-java by grpc.
the class AbstractClientTransportFactoryTest method multipleCallsToCloseShouldNotThrow.
@Test
public void multipleCallsToCloseShouldNotThrow() {
ClientTransportFactory transportFactory = newClientTransportFactory();
transportFactory.close();
transportFactory.close();
transportFactory.close();
}
use of io.grpc.internal.ClientTransportFactory in project grpc-java by grpc.
the class AbstractClientTransportFactoryTest method newClientTransportAfterCloseShouldThrow.
@Test(expected = IllegalStateException.class)
public void newClientTransportAfterCloseShouldThrow() {
ClientTransportFactory transportFactory = newClientTransportFactory();
transportFactory.close();
transportFactory.newClientTransport(new InetSocketAddress("localhost", 12345), "localhost:" + 12345, "agent");
}
Aggregations