Search in sources :

Example 26 with StringMapEntryAdd

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

the class AddWheelchairPublicTransportTest method testPublicTransportLimited.

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

Example 27 with StringMapEntryAdd

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

the class AddHousenumberTest method testConscriptionNumber.

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

Example 28 with StringMapEntryAdd

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

the class AddHousenumberTest method testName.

public void testName() {
    bundle.putString(AddHousenumberForm.HOUSENAME, "La Escalera");
    verify(new StringMapEntryAdd("addr:housename", "La Escalera"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 29 with StringMapEntryAdd

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

the class AddRoadNameTest method testMultipleNamesDefaultNameIsOfNoSpecificLanguage.

public void testMultipleNamesDefaultNameIsOfNoSpecificLanguage() {
    bundle.putStringArray(AddRoadNameForm.NAMES, new String[] { "my name / kröötz", "my name", "kröötz" });
    bundle.putStringArray(AddRoadNameForm.LANGUAGE_CODES, new String[] { "", "en", "de" });
    verify(new StringMapEntryAdd("name", "my name / kröötz"), new StringMapEntryAdd("name:en", "my name"), new StringMapEntryAdd("name:de", "kröötz"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 30 with StringMapEntryAdd

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

the class AddRoadNameTest method testNoName.

public void testNoName() {
    bundle.putBoolean(AddRoadNameForm.NO_NAME, true);
    verify(new StringMapEntryAdd("noname", "yes"));
}
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