use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testCyclewayLaneWithExplicitDirection.
public void testCyclewayLaneWithExplicitDirection() {
// this would be a street that has lanes on both sides but is oneway=yes (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", "-1"), new StringMapEntryAdd("cycleway:right", "lane"));
}
use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testCyclewayOnSidewalk.
public void testCyclewayOnSidewalk() {
putBothSides(Cycleway.SIDEWALK);
verify(new StringMapEntryAdd("cycleway:both", "track"), new StringMapEntryAdd("sidewalk", "both"), new StringMapEntryAdd("cycleway:both:segregated", "no"));
}
use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testCyclewayTrack.
public void testCyclewayTrack() {
putBothSides(Cycleway.TRACK);
verify(new StringMapEntryAdd("cycleway:both", "track"));
}
use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testCyclewaySidewalkAny.
public void testCyclewaySidewalkAny() {
bundle.putString(AddCyclewayForm.CYCLEWAY_RIGHT, Cycleway.SIDEWALK.name());
bundle.putString(AddCyclewayForm.CYCLEWAY_LEFT, Cycleway.SIDEWALK_OK.name());
verify(new StringMapEntryAdd("sidewalk", "both"));
}
use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.
the class AddCyclewayTest method testLeftAndRightAreDifferent.
public void testLeftAndRightAreDifferent() {
bundle.putString(AddCyclewayForm.CYCLEWAY_RIGHT, Cycleway.LANE.name());
bundle.putString(AddCyclewayForm.CYCLEWAY_LEFT, Cycleway.TRACK.name());
verify(new StringMapEntryAdd("cycleway:right", "lane"), new StringMapEntryAdd("cycleway:left", "track"));
}
Aggregations