Search in sources :

Example 1 with MaintenanceImplBase

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);
}
Also used : MaintenanceImplBase(com.coreos.jetcd.api.MaintenanceGrpc.MaintenanceImplBase) ByteString(com.google.protobuf.ByteString) BeforeTest(org.testng.annotations.BeforeTest)

Aggregations

MaintenanceImplBase (com.coreos.jetcd.api.MaintenanceGrpc.MaintenanceImplBase)1 ByteString (com.google.protobuf.ByteString)1 BeforeTest (org.testng.annotations.BeforeTest)1