Search in sources :

Example 6 with StringMapEntryAdd

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

the class AddWheelchairPublicTransportTest method testPublicTransportNo.

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

Example 7 with StringMapEntryAdd

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

the class AddHousenumberTest method testConscriptionNumberAndStreetNumber.

public void testConscriptionNumberAndStreetNumber() {
    bundle.putString(AddHousenumberForm.CONSCRIPTIONNUMBER, "I.123");
    bundle.putString(AddHousenumberForm.STREETNUMBER, "12b");
    verify(new StringMapEntryAdd("addr:conscriptionnumber", "I.123"), new StringMapEntryAdd("addr:streetnumber", "12b"), new StringMapEntryAdd("addr:housenumber", "12b"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 8 with StringMapEntryAdd

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

the class AddHousenumberTest method testNumber.

public void testNumber() {
    bundle.putString(AddHousenumberForm.HOUSENUMBER, "99b");
    verify(new StringMapEntryAdd("addr:housenumber", "99b"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 9 with StringMapEntryAdd

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

the class AddOpeningHoursTest method testOpeningHours.

public void testOpeningHours() {
    bundle.putString(AddOpeningHoursForm.OPENING_HOURS, "my cool opening hours");
    verify(new StringMapEntryAdd("opening_hours", "my cool opening hours"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 10 with StringMapEntryAdd

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

the class AddRoadNameTest method testMultipleNames.

public void testMultipleNames() {
    bundle.putStringArray(AddRoadNameForm.NAMES, new String[] { "my name", "kröötz" });
    bundle.putStringArray(AddRoadNameForm.LANGUAGE_CODES, new String[] { "en", "de" });
    verify(new StringMapEntryAdd("name", "my name"), new StringMapEntryAdd("name:en", "my name"), new StringMapEntryAdd("name:de", "kröötz"));
}
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