mirror of https://github.com/apache/jclouds.git
Fix type of location coordinates (#36)
This commit is contained in:
parent
f5806d0488
commit
215df85105
|
@ -42,16 +42,16 @@ public abstract class Location {
|
|||
/**
|
||||
* The longitude of the datacenter
|
||||
*/
|
||||
public abstract double longitude();
|
||||
public abstract String longitude();
|
||||
|
||||
/**
|
||||
* The latitude of the datacenter
|
||||
*/
|
||||
public abstract double latitude();
|
||||
public abstract String latitude();
|
||||
|
||||
@SerializedNames({"id", "name", "displayName", "longitude", "latitude"})
|
||||
public static Location create(final String id, final String name, final String displayName, final double longitude,
|
||||
final double latitude) {
|
||||
public static Location create(final String id, final String name, final String displayName, final String longitude,
|
||||
final String latitude) {
|
||||
|
||||
return new AutoValue_Location(id, name, displayName, longitude, latitude);
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ public class LocationApiMockTest extends BaseAzureComputeApiMockTest {
|
|||
final LocationApi locationAPI = api.getLocationApi();
|
||||
assertEquals(locationAPI.list(), ImmutableList.of(
|
||||
Location.create("/subscriptions/SUBSCRIPTIONID/locations/eastasia",
|
||||
"eastasia", "East Asia", 114.188, 22.267)
|
||||
"eastasia", "East Asia", "114.188", "22.267")
|
||||
));
|
||||
assertSent(server, "GET", "/subscriptions/SUBSCRIPTIONID/locations?api-version=2015-11-01");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue