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