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"));
}
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"));
}
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"));
}
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"));
}
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"));
}
Aggregations