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

correct latlngbounds exception message #12816

Merged
merged 1 commit into from
Sep 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}