use of de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType in project StreetComplete by westnordost.
the class OsmQuestDaoTest method testGetNoNextNewAt.
public void testGetNoNextNewAt() {
ElementGeometry geom = new ElementGeometry(new OsmLatLon(5, 5));
OsmQuest quest = createNewQuest(new TestQuestType(), 1, Element.Type.NODE, geom);
quest.setStatus(QuestStatus.ANSWERED);
addToDaos(quest);
assertNull(dao.getNextNewAt(1, null));
}
use of de.westnordost.streetcomplete.data.osm.persist.test.TestQuestType 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