From 505f5473e869788c0dd949eb1abd6aa133107542 Mon Sep 17 00:00:00 2001 From: bspeice Date: Fri, 18 Oct 2013 17:14:55 -0400 Subject: [PATCH] Add first function to test the REST api --- src/com/uncc/gameday/registration/test/RESTTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/uncc/gameday/registration/test/RESTTest.java b/src/com/uncc/gameday/registration/test/RESTTest.java index ca62405..0d8318c 100644 --- a/src/com/uncc/gameday/registration/test/RESTTest.java +++ b/src/com/uncc/gameday/registration/test/RESTTest.java @@ -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 lots = rc.listLots(); + assertFalse((lots.size() == 0)); + } }