mirror of
https://github.com/bspeice/UNCCGameDay-Test
synced 2024-11-21 15:38:15 -05:00
Add first function to test the REST api
This commit is contained in:
parent
73b0b06d02
commit
505f5473e8
@ -33,4 +33,10 @@ public class RESTTest extends AndroidTestCase {
|
||||
fail("Could not connect to GameDay! Response code: " + connection.getResponseCode());
|
||||
}
|
||||
|
||||
public void testFetchLots() {
|
||||
RegistrationClient rc = new RegistrationClient(this.mContext);
|
||||
List<ParkingLot> lots = rc.listLots();
|
||||
assertFalse((lots.size() == 0));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user