mirror of
				https://github.com/bspeice/UNCCGameDay-Test
				synced 2025-10-31 09:20:35 -04:00 
			
		
		
		
	Add first function to test the REST api
This commit is contained in:
		| @ -32,5 +32,11 @@ public class RESTTest extends AndroidTestCase { | |||||||
| 		if (connection.getResponseCode() != connection.HTTP_OK) | 		if (connection.getResponseCode() != connection.HTTP_OK) | ||||||
| 			fail("Could not connect to GameDay! Response code: " + connection.getResponseCode()); | 			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)); | ||||||
|  | 	} | ||||||
|  |  | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 bspeice
					bspeice