Test the single lot list code

This commit is contained in:
bspeice 2013-10-18 18:06:27 -04:00
parent 4111794df4
commit 7318fdec9f

View File

@ -5,6 +5,7 @@ import java.net.URL;
import java.util.List;
import com.uncc.gameday.R;
import com.uncc.gameday.registration.ParkingChoices;
import com.uncc.gameday.registration.ParkingLot;
import com.uncc.gameday.registration.RegistrationClient;
@ -39,4 +40,10 @@ public class RegistrationClientTest extends AndroidTestCase {
assertTrue((lots.size() > 0));
}
public void testListLot() {
RegistrationClient rc = new RegistrationClient(this.mContext);
ParkingLot lot = rc.listLot(ParkingChoices.BLUE);
assertTrue(lot.getLocation().getValue() == ParkingChoices.BLUE.getValue());
}
}