use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class RegionUrlMapsClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonRegionUrlMapsStub.getMethodDescriptors(), RegionUrlMapsSettings.getDefaultEndpoint());
RegionUrlMapsSettings settings = RegionUrlMapsSettings.newBuilder().setTransportChannelProvider(RegionUrlMapsSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = RegionUrlMapsClient.create(settings);
}
use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class ReservationsClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonReservationsStub.getMethodDescriptors(), ReservationsSettings.getDefaultEndpoint());
ReservationsSettings settings = ReservationsSettings.newBuilder().setTransportChannelProvider(ReservationsSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = ReservationsClient.create(settings);
}
use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class InterconnectsClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonInterconnectsStub.getMethodDescriptors(), InterconnectsSettings.getDefaultEndpoint());
InterconnectsSettings settings = InterconnectsSettings.newBuilder().setTransportChannelProvider(InterconnectsSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = InterconnectsClient.create(settings);
}
use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class LicenseCodesClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonLicenseCodesStub.getMethodDescriptors(), LicenseCodesSettings.getDefaultEndpoint());
LicenseCodesSettings settings = LicenseCodesSettings.newBuilder().setTransportChannelProvider(LicenseCodesSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = LicenseCodesClient.create(settings);
}
use of com.google.api.gax.httpjson.testing.MockHttpService in project java-compute by googleapis.
the class LicensesClientTest method startStaticServer.
@BeforeClass
public static void startStaticServer() throws IOException {
mockService = new MockHttpService(HttpJsonLicensesStub.getMethodDescriptors(), LicensesSettings.getDefaultEndpoint());
LicensesSettings settings = LicensesSettings.newBuilder().setTransportChannelProvider(LicensesSettings.defaultHttpJsonTransportProviderBuilder().setHttpTransport(mockService).build()).setCredentialsProvider(NoCredentialsProvider.create()).build();
client = LicensesClient.create(settings);
}
Aggregations