Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - correct latlngbounds exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Sep 5, 2018
1 parent e51eb0f commit e082af1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ private static void checkParams(
}

if (latNorth < latSouth) {
throw new IllegalArgumentException("LatSouth cannot be less than latNorth");
throw new IllegalArgumentException("latNorth cannot be less than latSouth");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public void intersectSouthCheck() {
@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)
Expand Down Expand Up @@ -594,7 +594,7 @@ public void unionSouthCheck() {
@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)
Expand Down Expand Up @@ -786,7 +786,7 @@ public void testConstructorChecksWestLongitudeInfinity() {
@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);
}
}

0 comments on commit e082af1

Please sign in to comment.