Search in sources :

Example 36 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddBuildingLevelsTest method testBuildingLevelsAndRoofLevels.

public void testBuildingLevelsAndRoofLevels() {
    bundle.putInt(AddBuildingLevelsForm.BUILDING_LEVELS, 5);
    bundle.putInt(AddBuildingLevelsForm.ROOF_LEVELS, 3);
    verify(new StringMapEntryAdd("building:levels", "5"), new StringMapEntryAdd("roof:levels", "3"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 37 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddBuildingLevelsTest method testBuildingLevelsOnly.

public void testBuildingLevelsOnly() {
    bundle.putInt(AddBuildingLevelsForm.BUILDING_LEVELS, 5);
    verify(new StringMapEntryAdd("building:levels", "5"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 38 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddCyclewayTest method testCyclewaySharedLane.

public void testCyclewaySharedLane() {
    putBothSides(Cycleway.SHARED);
    verify(new StringMapEntryAdd("cycleway:both", "shared_lane"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 39 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddCyclewayTest method testCyclewaySidewalkOkay.

public void testCyclewaySidewalkOkay() {
    putBothSides(Cycleway.SIDEWALK_OK);
    verify(new StringMapEntryAdd("cycleway:both", "no"), new StringMapEntryAdd("sidewalk", "both"), new StringMapEntryAdd("sidewalk:both:bicycle", "yes"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 40 with StringMapEntryAdd

use of de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd in project StreetComplete by westnordost.

the class AddCyclewayTest method testCyclewayMakesStreetNotOnewayForBicycles.

public void testCyclewayMakesStreetNotOnewayForBicycles() {
    putBothSides(Cycleway.LANE);
    bundle.putBoolean(AddCyclewayForm.IS_ONEWAY_NOT_FOR_CYCLISTS, true);
    verify(new StringMapEntryAdd("cycleway:both", "lane"), new StringMapEntryAdd("oneway:bicycle", "no"));
}
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