use of de.westnordost.streetcomplete.data.QuestTypeRegistry 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));
}
use of de.westnordost.streetcomplete.data.QuestTypeRegistry in project StreetComplete by westnordost.
the class QuestTypeOrderListTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
one = new TestQuestType();
two = new TestQuestType2();
three = new TestQuestType3();
four = new TestQuestType4();
five = new TestQuestType5();
list = new ArrayList<>();
list.addAll(Arrays.asList(one, two, three, four, five));
questTypeOrderList = new QuestTypeOrderList(getContext().getSharedPreferences("Test", Context.MODE_PRIVATE), new QuestTypeRegistry(list));
questTypeOrderList.clear();
}
Aggregations