use of com.coreos.jetcd.api.MaintenanceGrpc.MaintenanceImplBase in project jetcd by coreos.
the class MaintenanceUnitTest method setUp.
@BeforeTest
public void setUp() throws AuthFailedException, ConnectException, IOException {
String uniqueServerName = "fake server for " + getClass();
fakeServer = InProcessServerBuilder.forName(uniqueServerName).fallbackHandlerRegistry(serviceRegistry).directExecutor().build().start();
maintenanceCli = new MaintenanceImpl(InProcessChannelBuilder.forName(uniqueServerName).directExecutor().build(), Optional.empty());
MaintenanceImplBase base = this.defaultBase(responseObserverRef);
serviceRegistry.addService(base);
}
Aggregations