Search in sources :

Example 41 with StringMapEntryAdd

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"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 42 with StringMapEntryAdd

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"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 43 with StringMapEntryAdd

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"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 44 with StringMapEntryAdd

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"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 45 with StringMapEntryAdd

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