Add code to test fetching the parking lot coordinate

This commit is contained in:
bspeice 2013-10-28 15:03:34 -04:00
parent 6bd8272669
commit fbf0f93067

View File

@ -45,6 +45,12 @@ public class ParkingClientTest extends AndroidTestCase{
assertTrue(lot.getLocation().getValue() == ParkingChoice.BLUE.getValue()); 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 { public void testRateLot() throws InterruptedException {
ParkingClient pc = new ParkingClient(this.mContext); ParkingClient pc = new ParkingClient(this.mContext);
ParkingChoice choice = ParkingChoice.BLUE; ParkingChoice choice = ParkingChoice.BLUE;