Search in sources :

Example 21 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddParkingFeeTest method testYesButOnlyAt.

public void testYesButOnlyAt() {
    bundle.putBoolean(AddParkingFeeForm.FEE, false);
    bundle.putString(AddParkingFeeForm.FEE_CONDITONAL_HOURS, "xyz");
    verify(new StringMapEntryAdd("fee", "no"), new StringMapEntryAdd("fee:conditional", "yes @ (xyz)"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 22 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddRecyclingTypeTest method testRecyclingUndergroundContainer.

public void testRecyclingUndergroundContainer() {
    bundle.putStringArrayList(AddRecyclingTypeForm.OSM_VALUES, getAsStringArray("underground"));
    verify(new StringMapEntryAdd("recycling_type", "container"));
    verify(new StringMapEntryAdd("location", "underground"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 23 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddSportTest method testAddSport.

public void testAddSport() {
    bundle.putStringArrayList(AddSportForm.OSM_VALUES, getAsStringArray("soccer"));
    verify(new StringMapEntryAdd("sport", "soccer"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 24 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddWheelchairBusinessTest method testBusinessYes.

public void testBusinessYes() {
    bundle.putString(AddWheelchairAccessBusinessForm.ANSWER, "yes");
    verify(new StringMapEntryAdd("wheelchair", "yes"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 25 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddWheelchairBusinessTest method testBusinessNo.

public void testBusinessNo() {
    bundle.putString(AddWheelchairAccessBusinessForm.ANSWER, "no");
    verify(new StringMapEntryAdd("wheelchair", "no"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Aggregations

StringMapEntryAdd (de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)51 StringMapChanges (de.westnordost.streetcomplete.data.osm.changes.StringMapChanges)2 StringMapEntryChange (de.westnordost.streetcomplete.data.osm.changes.StringMapEntryChange)2 ArrayList (java.util.ArrayList)2 OsmQuest (de.westnordost.streetcomplete.data.osm.OsmQuest)1 StringMapEntryDelete (de.westnordost.streetcomplete.data.osm.changes.StringMapEntryDelete)1 StringMapEntryModify (de.westnordost.streetcomplete.data.osm.changes.StringMapEntryModify)1