use of fr.free.nrw.commons.nearby.NearbyBaseMarker in project apps-android-commons by commons-app.
the class NearbyControllerTest method testEmptyList.
@Test
public void testEmptyList() {
LatLng location = new LatLng(0, 0, 0);
List<Place> emptyList = new ArrayList<>();
List<NearbyBaseMarker> options = NearbyController.loadAttractionsFromLocationToBaseMarkerOptions(location, emptyList, instrumentationContext);
Assert.assertThat(options.size(), is(0));
}
use of fr.free.nrw.commons.nearby.NearbyBaseMarker in project apps-android-commons by commons-app.
the class NearbyControllerTest method testNullAttractions.
@Test
public void testNullAttractions() {
LatLng location = new LatLng(0, 0, 0);
List<NearbyBaseMarker> options = NearbyController.loadAttractionsFromLocationToBaseMarkerOptions(location, null, instrumentationContext);
Assert.assertThat(options.size(), is(0));
}
Aggregations