Search in sources :

Example 11 with StringMapEntryAdd

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

Example 12 with StringMapEntryAdd

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

Example 13 with StringMapEntryAdd

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

Example 14 with StringMapEntryAdd

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

Example 15 with StringMapEntryAdd

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