From fbf0f93067a6be8d0e1a440bd4c7ce0b3330b4df Mon Sep 17 00:00:00 2001 From: bspeice Date: Mon, 28 Oct 2013 15:03:34 -0400 Subject: [PATCH] Add code to test fetching the parking lot coordinate --- src/com/uncc/gameday/parking/test/ParkingClientTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/uncc/gameday/parking/test/ParkingClientTest.java b/src/com/uncc/gameday/parking/test/ParkingClientTest.java index e028bc5..ea9e6d6 100644 --- a/src/com/uncc/gameday/parking/test/ParkingClientTest.java +++ b/src/com/uncc/gameday/parking/test/ParkingClientTest.java @@ -45,6 +45,12 @@ public class ParkingClientTest extends AndroidTestCase{ assertTrue(lot.getLocation().getValue() == ParkingChoice.BLUE.getValue()); } + public void testFetchLocation() { + ParkingClient pc = new ParkingClient(this.mContext); + ParkingLot l = pc.listLot(ParkingChoice.GOLD); + assertTrue((l.getCoordinate().getLatitude() != 0)); + } + public void testRateLot() throws InterruptedException { ParkingClient pc = new ParkingClient(this.mContext); ParkingChoice choice = ParkingChoice.BLUE;