[android] - correct latlngbounds exception message

This commit is contained in:
Tobrun
2018-09-05 07:39:28 +02:00
committed by Tobrun
parent e51eb0fc23
commit e082af1879
2 changed files with 4 additions and 4 deletions

View File

@@ -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");
}
}

View File

@@ -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);
}
}