use of com.netflix.titus.grpc.protogen.JobManagementServiceGrpc.JobManagementServiceFutureStub in project titus-control-plane by Netflix.
the class TitusClientImplTest method setup.
@Before
public void setup() throws IOException {
final MockJobManagerService mockJobManagerService = new MockJobManagerService();
testServer = InProcessServerBuilder.forName("testServer").directExecutor().addService(mockJobManagerService).build().start();
final ManagedChannel channel = InProcessChannelBuilder.forName("testServer").directExecutor().usePlaintext().build();
final JobManagementServiceStub jobManagementServiceStub = JobManagementServiceGrpc.newStub(channel);
final JobManagementServiceFutureStub jobManagementServiceFutureStub = JobManagementServiceGrpc.newFutureStub(channel);
titusClient = new TitusClientImpl(jobManagementServiceStub, jobManagementServiceFutureStub, new DefaultRegistry());
}
Aggregations