Search in sources :

Example 16 with Location

use of org.geotoolkit.sml.xml.v100.Location in project java-client by appium.

the class AndroidDriverTest method geolocationTest.

@Test
public void geolocationTest() {
    Location location = new Location(45, 45, 100);
    driver.setLocation(location);
}
Also used : Location(org.openqa.selenium.html5.Location) Test(org.junit.Test)

Example 17 with Location

use of org.geotoolkit.sml.xml.v100.Location in project java-container by googleapis.

the class ClusterManagerClientTest method listLocationsTest.

@Test
public void listLocationsTest() throws Exception {
    ListLocationsResponse expectedResponse = ListLocationsResponse.newBuilder().addAllLocations(new ArrayList<Location>()).setNextPageToken("nextPageToken-1386094857").build();
    mockClusterManager.addResponse(expectedResponse);
    String parent = "parent-995424086";
    ListLocationsResponse actualResponse = client.listLocations(parent);
    Assert.assertEquals(expectedResponse, actualResponse);
    List<AbstractMessage> actualRequests = mockClusterManager.getRequests();
    Assert.assertEquals(1, actualRequests.size());
    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
    Assert.assertEquals(parent, actualRequest.getParent());
    Assert.assertTrue(channelProvider.isHeaderSent(ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}
Also used : ListLocationsResponse(com.google.container.v1beta1.ListLocationsResponse) AbstractMessage(com.google.protobuf.AbstractMessage) ListLocationsRequest(com.google.container.v1beta1.ListLocationsRequest) Location(com.google.container.v1beta1.Location) Test(org.junit.Test)

Aggregations

Random (java.util.Random)6 Test (org.junit.Test)4 AdUnitTargeting (com.google.api.ads.admanager.axis.v202108.AdUnitTargeting)2 GeoTargeting (com.google.api.ads.admanager.axis.v202108.GeoTargeting)2 InventoryTargeting (com.google.api.ads.admanager.axis.v202108.InventoryTargeting)2 Location (com.google.api.ads.admanager.axis.v202108.Location)2 NetworkServiceInterface (com.google.api.ads.admanager.axis.v202108.NetworkServiceInterface)2 Targeting (com.google.api.ads.admanager.axis.v202108.Targeting)2 AdUnitTargeting (com.google.api.ads.admanager.axis.v202111.AdUnitTargeting)2 GeoTargeting (com.google.api.ads.admanager.axis.v202111.GeoTargeting)2 InventoryTargeting (com.google.api.ads.admanager.axis.v202111.InventoryTargeting)2 Location (com.google.api.ads.admanager.axis.v202111.Location)2 NetworkServiceInterface (com.google.api.ads.admanager.axis.v202111.NetworkServiceInterface)2 Targeting (com.google.api.ads.admanager.axis.v202111.Targeting)2 AdUnitTargeting (com.google.api.ads.admanager.axis.v202202.AdUnitTargeting)2 GeoTargeting (com.google.api.ads.admanager.axis.v202202.GeoTargeting)2 InventoryTargeting (com.google.api.ads.admanager.axis.v202202.InventoryTargeting)2 Location (com.google.api.ads.admanager.axis.v202202.Location)2 NetworkServiceInterface (com.google.api.ads.admanager.axis.v202202.NetworkServiceInterface)2 Targeting (com.google.api.ads.admanager.axis.v202202.Targeting)2