use of de.westnordost.streetcomplete.data.osmnotes.OsmNoteQuestDao in project StreetComplete by westnordost.
the class OsmQuestUnlockerTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
ElementGeometryDao elementGeometryDao = mock(ElementGeometryDao.class);
when(elementGeometryDao.get(Element.Type.NODE, 1)).thenReturn(new ElementGeometry(POS));
osmNoteQuestDao = mock(OsmNoteQuestDao.class);
when(osmNoteQuestDao.getAllPositions(any(BoundingBox.class))).thenReturn(Collections.emptyList());
osmQuestDao = mock(OsmQuestDao.class);
when(osmQuestDao.getAll(null, null, null, Element.Type.NODE, 1L)).thenReturn(Collections.emptyList());
questType = mock(OsmElementQuestType.class);
final List<QuestType> questTypes = Collections.singletonList(questType);
osmQuestUnlocker = new OsmQuestUnlocker(osmNoteQuestDao, osmQuestDao, elementGeometryDao, () -> questTypes);
}
Aggregations