Search in sources :

Example 11 with QuestType

use of de.westnordost.streetcomplete.data.QuestType in project StreetComplete by westnordost.

the class OsmQuestDaoTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    geometryDao = new ElementGeometryDao(dbHelper, serializer);
    List<QuestType> list = new ArrayList<>();
    list.add(new TestQuestType());
    list.add(new TestQuestType2());
    list.add(new TestQuestType3());
    list.add(new TestQuestType4());
    list.add(new TestQuestType5());
    dao = new OsmQuestDao(dbHelper, serializer, new QuestTypeRegistry(list));
}
Also used : TestQuestType(de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType) OsmElementQuestType(de.westnordost.streetcomplete.data.osm.OsmElementQuestType) QuestType(de.westnordost.streetcomplete.data.QuestType) ArrayList(java.util.ArrayList) TestQuestType5(de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType5) QuestTypeRegistry(de.westnordost.streetcomplete.data.QuestTypeRegistry) TestQuestType4(de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType4) TestQuestType3(de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType3) TestQuestType(de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType) TestQuestType2(de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType2)

Aggregations

QuestType (de.westnordost.streetcomplete.data.QuestType)11 ArrayList (java.util.ArrayList)5 OsmElementQuestType (de.westnordost.streetcomplete.data.osm.OsmElementQuestType)3 OsmNoteQuestType (de.westnordost.streetcomplete.data.osmnotes.OsmNoteQuestType)3 BoundingBox (de.westnordost.osmapi.map.data.BoundingBox)2 List (java.util.List)2 Point (android.graphics.Point)1 LatLon (de.westnordost.osmapi.map.data.LatLon)1 QuestTypeRegistry (de.westnordost.streetcomplete.data.QuestTypeRegistry)1 OsmQuestDownload (de.westnordost.streetcomplete.data.osm.download.OsmQuestDownload)1 ElementGeometryDao (de.westnordost.streetcomplete.data.osm.persist.ElementGeometryDao)1 OsmQuestDao (de.westnordost.streetcomplete.data.osm.persist.OsmQuestDao)1 TestQuestType (de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType)1 TestQuestType2 (de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType2)1 TestQuestType3 (de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType3)1 TestQuestType4 (de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType4)1 TestQuestType5 (de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType5)1 OsmNoteQuestDao (de.westnordost.streetcomplete.data.osmnotes.OsmNoteQuestDao)1 HashSet (java.util.HashSet)1