Search in sources :

Example 1 with MockGrpcService

use of com.google.api.gax.grpc.testing.MockGrpcService 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();
}
Also used : MockGrpcService(com.google.api.gax.grpc.testing.MockGrpcService) MockServiceHelper(com.google.api.gax.grpc.testing.MockServiceHelper) BeforeClass(org.junit.BeforeClass)

Example 2 with MockGrpcService

use of com.google.api.gax.grpc.testing.MockGrpcService 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();
}
Also used : MockGrpcService(com.google.api.gax.grpc.testing.MockGrpcService) MockServiceHelper(com.google.api.gax.grpc.testing.MockServiceHelper) BeforeClass(org.junit.BeforeClass)

Example 3 with MockGrpcService

use of com.google.api.gax.grpc.testing.MockGrpcService 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();
}
Also used : MockGrpcService(com.google.api.gax.grpc.testing.MockGrpcService) MockServiceHelper(com.google.api.gax.grpc.testing.MockServiceHelper) BeforeClass(org.junit.BeforeClass)

Example 4 with MockGrpcService

use of com.google.api.gax.grpc.testing.MockGrpcService 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();
}
Also used : MockGrpcService(com.google.api.gax.grpc.testing.MockGrpcService) MockServiceHelper(com.google.api.gax.grpc.testing.MockServiceHelper) BeforeClass(org.junit.BeforeClass)

Example 5 with MockGrpcService

use of com.google.api.gax.grpc.testing.MockGrpcService 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();
}
Also used : MockGrpcService(com.google.api.gax.grpc.testing.MockGrpcService) MockServiceHelper(com.google.api.gax.grpc.testing.MockServiceHelper) BeforeClass(org.junit.BeforeClass)

Aggregations

MockGrpcService (com.google.api.gax.grpc.testing.MockGrpcService)17 MockServiceHelper (com.google.api.gax.grpc.testing.MockServiceHelper)17 BeforeClass (org.junit.BeforeClass)17