Search in sources :

Example 1 with MockIAMPolicy

use of com.google.iam.v1.MockIAMPolicy in project java-kms by googleapis.

the class KeyManagementServiceClientTest method startStaticServer.

@BeforeClass
public static void startStaticServer() {
    mockKeyManagementService = new MockKeyManagementService();
    mockIAMPolicy = new MockIAMPolicy();
    mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockKeyManagementService, mockIAMPolicy));
    mockServiceHelper.start();
}
Also used : MockGrpcService(com.google.api.gax.grpc.testing.MockGrpcService) MockIAMPolicy(com.google.iam.v1.MockIAMPolicy) MockServiceHelper(com.google.api.gax.grpc.testing.MockServiceHelper) BeforeClass(org.junit.BeforeClass)

Example 2 with MockIAMPolicy

use of com.google.iam.v1.MockIAMPolicy in project java-kms by googleapis.

the class EkmServiceClientTest method startStaticServer.

@BeforeClass
public static void startStaticServer() {
    mockEkmService = new MockEkmService();
    mockIAMPolicy = new MockIAMPolicy();
    mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockEkmService, mockIAMPolicy));
    mockServiceHelper.start();
}
Also used : MockGrpcService(com.google.api.gax.grpc.testing.MockGrpcService) MockIAMPolicy(com.google.iam.v1.MockIAMPolicy) MockServiceHelper(com.google.api.gax.grpc.testing.MockServiceHelper) BeforeClass(org.junit.BeforeClass)

Example 3 with MockIAMPolicy

use of com.google.iam.v1.MockIAMPolicy in project java-security-private-ca by googleapis.

the class CertificateAuthorityServiceClientTest method startStaticServer.

@BeforeClass
public static void startStaticServer() {
    mockCertificateAuthorityService = new MockCertificateAuthorityService();
    mockLocations = new MockLocations();
    mockIAMPolicy = new MockIAMPolicy();
    mockServiceHelper = new MockServiceHelper(UUID.randomUUID().toString(), Arrays.<MockGrpcService>asList(mockCertificateAuthorityService, mockLocations, mockIAMPolicy));
    mockServiceHelper.start();
}
Also used : MockGrpcService(com.google.api.gax.grpc.testing.MockGrpcService) MockIAMPolicy(com.google.iam.v1.MockIAMPolicy) MockServiceHelper(com.google.api.gax.grpc.testing.MockServiceHelper) MockLocations(com.google.cloud.location.MockLocations) BeforeClass(org.junit.BeforeClass)

Aggregations

MockGrpcService (com.google.api.gax.grpc.testing.MockGrpcService)3 MockServiceHelper (com.google.api.gax.grpc.testing.MockServiceHelper)3 MockIAMPolicy (com.google.iam.v1.MockIAMPolicy)3 BeforeClass (org.junit.BeforeClass)3 MockLocations (com.google.cloud.location.MockLocations)1