[android] - correct latlngbounds exception message
This commit is contained in:
@@ -331,7 +331,7 @@ public class LatLngBounds implements Parcelable {
|
||||
}
|
||||
|
||||
if (latNorth < latSouth) {
|
||||
throw new IllegalArgumentException("LatSouth cannot be less than latNorth");
|
||||
throw new IllegalArgumentException("latNorth cannot be less than latSouth");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -387,7 +387,7 @@ public class LatLngBoundsTest {
|
||||
@Test
|
||||
public void intersectSouthLessThanNorthCheck() {
|
||||
exception.expect(IllegalArgumentException.class);
|
||||
exception.expectMessage("LatSouth cannot be less than latNorth");
|
||||
exception.expectMessage("latNorth cannot be less than latSouth");
|
||||
|
||||
LatLngBounds intersectLatLngBounds =
|
||||
LatLngBounds.from(10, 10, 0, 0)
|
||||
@@ -594,7 +594,7 @@ public class LatLngBoundsTest {
|
||||
@Test
|
||||
public void unionSouthLessThanNorthCheck() {
|
||||
exception.expect(IllegalArgumentException.class);
|
||||
exception.expectMessage("LatSouth cannot be less than latNorth");
|
||||
exception.expectMessage("latNorth cannot be less than latSouth");
|
||||
|
||||
LatLngBounds unionLatLngBounds =
|
||||
LatLngBounds.from(10, 10, 0, 0)
|
||||
@@ -786,7 +786,7 @@ public class LatLngBoundsTest {
|
||||
@Test
|
||||
public void testConstructorCheckLatSouthGreaterLatNorth() {
|
||||
exception.expect(IllegalArgumentException.class);
|
||||
exception.expectMessage("LatSouth cannot be less than latNorth");
|
||||
exception.expectMessage("latNorth cannot be less than latSouth");
|
||||
LatLngBounds.from(0, 20, 20, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user