Search in sources :

Example 1 with StringMapEntryModify

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

the class AddSportTest method testReplaceHockey.

public void testReplaceHockey() {
    tags.put("sport", "hockey");
    bundle.putStringArrayList(AddSportForm.OSM_VALUES, getAsStringArray("field_hockey"));
    verify(new StringMapEntryModify("sport", "hockey", "field_hockey"));
}
Also used : StringMapEntryModify(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryModify)

Example 2 with StringMapEntryModify

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

the class AddRoadNameTest method testIsService.

public void testIsService() {
    bundle.putInt(AddRoadNameForm.NO_PROPER_ROAD, AddRoadNameForm.IS_SERVICE);
    verify(new StringMapEntryModify("highway", tags.get("highway"), "service"));
}
Also used : StringMapEntryModify(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryModify)

Example 3 with StringMapEntryModify

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

the class AddSportTest method testReplaceTeamHandball.

public void testReplaceTeamHandball() {
    tags.put("sport", "team_handball");
    bundle.putStringArrayList(AddSportForm.OSM_VALUES, getAsStringArray("handball"));
    verify(new StringMapEntryModify("sport", "team_handball", "handball"));
}
Also used : StringMapEntryModify(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryModify)

Example 4 with StringMapEntryModify

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

the class AddRoadNameTest method testIsLink.

public void testIsLink() {
    bundle.putInt(AddRoadNameForm.NO_PROPER_ROAD, AddRoadNameForm.IS_LINK);
    tags.put("highway", "primary");
    verify(new StringMapEntryModify("highway", tags.get("highway"), "primary_link"));
    tags.put("highway", "secondary");
    verify(new StringMapEntryModify("highway", tags.get("highway"), "secondary_link"));
    tags.put("highway", "tertiary");
    verify(new StringMapEntryModify("highway", tags.get("highway"), "tertiary_link"));
}
Also used : StringMapEntryModify(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryModify)

Example 5 with StringMapEntryModify

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

the class AddRoadNameTest method testIsTrack.

public void testIsTrack() {
    bundle.putInt(AddRoadNameForm.NO_PROPER_ROAD, AddRoadNameForm.IS_TRACK);
    verify(new StringMapEntryModify("highway", tags.get("highway"), "track"));
}
Also used : StringMapEntryModify(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryModify)

Aggregations

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