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();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project google-cloud-java by GoogleCloudPlatform.
the class SpeechClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockSpeech = new MockSpeech();
serviceHelper = new MockServiceHelper("in-process-1", Arrays.<MockGrpcService>asList(mockSpeech));
serviceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project google-cloud-java by GoogleCloudPlatform.
the class LanguageServiceClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockLanguageService = new MockLanguageService();
serviceHelper = new MockServiceHelper("in-process-1", Arrays.<MockGrpcService>asList(mockLanguageService));
serviceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project google-cloud-java by GoogleCloudPlatform.
the class LanguageServiceClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockLanguageService = new MockLanguageService();
serviceHelper = new MockServiceHelper("in-process-1", Arrays.<MockGrpcService>asList(mockLanguageService));
serviceHelper.start();
}
use of com.google.api.gax.grpc.testing.MockServiceHelper in project google-cloud-java by GoogleCloudPlatform.
the class ErrorGroupServiceClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() {
mockErrorGroupService = new MockErrorGroupService();
mockErrorStatsService = new MockErrorStatsService();
mockReportErrorsService = new MockReportErrorsService();
serviceHelper = new MockServiceHelper("in-process-1", Arrays.<MockGrpcService>asList(mockErrorGroupService, mockErrorStatsService, mockReportErrorsService));
serviceHelper.start();
}
Aggregations