use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-spanner by googleapis.
the class MockDatabaseAdminServiceImplTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockOperations = new MockOperationsServiceImpl();
mockDatabaseAdmin = new MockDatabaseAdminServiceImpl(mockOperations);
serviceHelper = new MockServiceHelper("in-process-1", Arrays.asList(mockOperations, mockDatabaseAdmin));
serviceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-spanner by googleapis.
the class DatabaseAdminClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockDatabaseAdmin = new MockDatabaseAdmin();
mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockDatabaseAdmin));
mockServiceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-datalabeling by googleapis.
the class DataLabelingServiceClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockDataLabelingService = new MockDataLabelingService();
mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockDataLabelingService));
mockServiceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-talent by googleapis.
the class JobServiceClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockJobService = new MockJobService();
mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockJobService));
mockServiceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-talent by googleapis.
the class CompletionClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockCompletion = new MockCompletion();
mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockCompletion));
mockServiceHelper.start();
}
Aggregations