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);
}
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()));
}
Aggregations