use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddBuildingLevelsTest method testBuildingLevelsAndZeroRoofLevels.
public void testBuildingLevelsAndZeroRoofLevels() {
bundle.putInt(AddBuildingLevelsForm.BUILDING_LEVELS, 5);
bundle.putInt(AddBuildingLevelsForm.ROOF_LEVELS, 0);
verify(new StringMapEntryAdd("building:levels", "5"), new StringMapEntryAdd("roof:levels", "0"));
}
use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testCyclewayDualLane.
public void testCyclewayDualLane() {
putBothSides(Cycleway.LANE_DUAL);
verify(new StringMapEntryAdd("cycleway:both", "lane"), new StringMapEntryAdd("cycleway:both:oneway", "no"));
}
use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testCyclewayDualTrack.
public void testCyclewayDualTrack() {
putBothSides(Cycleway.TRACK_DUAL);
verify(new StringMapEntryAdd("cycleway:both", "track"), new StringMapEntryAdd("cycleway:both:oneway", "no"));
}
use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testCyclewayNone.
public void testCyclewayNone() {
putBothSides(Cycleway.NONE);
verify(new StringMapEntryAdd("cycleway:both", "no"));
}
use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testCyclewayLaneWithExplicitOtherDirection.
public void testCyclewayLaneWithExplicitOtherDirection() {
// this would be a street that has lanes on both sides but is oneway=-1 (in countries with
// right hand traffic)
putBothSides(Cycleway.LANE);
bundle.putInt(AddCyclewayForm.CYCLEWAY_LEFT_DIR, +1);
verify(new StringMapEntryAdd("cycleway:left", "lane"), new StringMapEntryAdd("cycleway:left:oneway", "yes"), new StringMapEntryAdd("cycleway:right", "lane"));
}
Aggregations