use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class TargetPoolsClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonTargetPoolsStub.getMethodDescriptors(), TargetPoolsSettings.getDefaultEndpoint());
TargetPoolsSettings settings = TargetPoolsSettings.newBuilder().setTransportChannelProvider(TargetPoolsSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = TargetPoolsClient.create(settings);
}
use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class TargetSslProxiesClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonTargetSslProxiesStub.getMethodDescriptors(), TargetSslProxiesSettings.getDefaultEndpoint());
TargetSslProxiesSettings settings = TargetSslProxiesSettings.newBuilder().setTransportChannelProvider(TargetSslProxiesSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = TargetSslProxiesClient.create(settings);
}
use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class UrlMapsClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonUrlMapsStub.getMethodDescriptors(), UrlMapsSettings.getDefaultEndpoint());
UrlMapsSettings settings = UrlMapsSettings.newBuilder().setTransportChannelProvider(UrlMapsSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = UrlMapsClient.create(settings);
}
use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class ZonesClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonZonesStub.getMethodDescriptors(), ZonesSettings.getDefaultEndpoint());
ZonesSettings settings = ZonesSettings.newBuilder().setTransportChannelProvider(ZonesSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = ZonesClient.create(settings);
}
use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class InterconnectAttachmentsClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonInterconnectAttachmentsStub.getMethodDescriptors(), InterconnectAttachmentsSettings.getDefaultEndpoint());
InterconnectAttachmentsSettings settings = InterconnectAttachmentsSettings.newBuilder().setTransportChannelProvider(InterconnectAttachmentsSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = InterconnectAttachmentsClient.create(settings);
}
Aggregations