mirror of
https://github.com/bspeice/UNCCGameDay-Test
synced 2025-07-04 07:15:26 -04:00
Add code to test fetching the parking lot coordinate
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user