Search in sources :

Example 1 with AddHousenumber

use of de.westnordost.streetcomplete.quests.housenumber.AddHousenumber in project StreetComplete by westnordost.

the class AddHousenumberIntegrationTest method verifyYieldsNoQuest.

private void verifyYieldsNoQuest(BoundingBox bbox, String date) {
    OverpassMapDataDao o = OsmModule.overpassOldMapDataDao(OsmModule::overpassMapDataParser, date);
    AddHousenumber quest = new AddHousenumber(o);
    MapDataWithGeometryHandler verifier = (element, geometry) -> {
        fail("Expected zero elements. Element returned: " + element.getType().name() + "#" + element.getId());
    };
    quest.download(bbox, verifier);
}
Also used : OsmModule(de.westnordost.streetcomplete.data.OsmModule) OverpassMapDataDao(de.westnordost.streetcomplete.data.osm.download.OverpassMapDataDao) MapDataWithGeometryHandler(de.westnordost.streetcomplete.data.osm.download.MapDataWithGeometryHandler) AddHousenumber(de.westnordost.streetcomplete.quests.housenumber.AddHousenumber) TestCase(junit.framework.TestCase) BoundingBox(de.westnordost.osmapi.map.data.BoundingBox) OverpassMapDataDao(de.westnordost.streetcomplete.data.osm.download.OverpassMapDataDao) AddHousenumber(de.westnordost.streetcomplete.quests.housenumber.AddHousenumber) OsmModule(de.westnordost.streetcomplete.data.OsmModule) MapDataWithGeometryHandler(de.westnordost.streetcomplete.data.osm.download.MapDataWithGeometryHandler)

Aggregations

BoundingBox (de.westnordost.osmapi.map.data.BoundingBox)1 OsmModule (de.westnordost.streetcomplete.data.OsmModule)1 MapDataWithGeometryHandler (de.westnordost.streetcomplete.data.osm.download.MapDataWithGeometryHandler)1 OverpassMapDataDao (de.westnordost.streetcomplete.data.osm.download.OverpassMapDataDao)1 AddHousenumber (de.westnordost.streetcomplete.quests.housenumber.AddHousenumber)1 TestCase (junit.framework.TestCase)1