use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-recommendations-ai by googleapis.
the class PredictionApiKeyRegistryClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockPredictionApiKeyRegistry = new MockPredictionApiKeyRegistry();
mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockPredictionApiKeyRegistry));
mockServiceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-recommendations-ai by googleapis.
the class PredictionServiceClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockPredictionService = new MockPredictionService();
mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockPredictionService));
mockServiceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-recommendations-ai by googleapis.
the class UserEventServiceClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockUserEventService = new MockUserEventService();
mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockUserEventService));
mockServiceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project java-bigquery-data-exchange by googleapis.
the class AnalyticsHubServiceClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockAnalyticsHubService = new MockAnalyticsHubService();
mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockAnalyticsHubService));
mockServiceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project google-cloud-java by GoogleCloudPlatform.
the class SubscriptionAdminClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockPublisher = new MockPublisher();
mockIAMPolicy = new MockIAMPolicy();
mockSubscriber = new MockSubscriber();
serviceHelper = new MockServiceHelper("in-process-1", Arrays.<MockGrpcService>asList(mockPublisher, mockIAMPolicy, mockSubscriber));
serviceHelper.start();
}
Aggregations