Add first function to test the REST api

master
bspeice 2013-10-18 17:14:55 -04:00
parent 73b0b06d02
commit 505f5473e8
1 changed files with 6 additions and 0 deletions

View File

@ -32,5 +32,11 @@ public class RESTTest extends AndroidTestCase {
if (connection.getResponseCode() != connection.HTTP_OK)
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));
}
}