mirror of
https://github.com/bspeice/UNCCGameDay-Test
synced 2024-11-21 15:38:15 -05:00
Test the single lot list code
This commit is contained in:
parent
4111794df4
commit
7318fdec9f
@ -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;
|
||||
|
||||
@ -38,5 +39,11 @@ public class RegistrationClientTest extends AndroidTestCase {
|
||||
List<ParkingLot> lots = rc.listLots();
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user