Search in sources :

Example 16 with StringMapEntryAdd

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

the class AddCyclewayTest method testCyclewayBusLane.

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

Example 17 with StringMapEntryAdd

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

the class AddCyclewayTest method testCyclewayLane.

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

Example 18 with StringMapEntryAdd

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

the class AddMaxSpeedTest method testNoSign.

public void testNoSign() {
    bundle.putString(AddMaxSpeedForm.MAX_SPEED_IMPLICIT_ROADTYPE, "flubberway");
    bundle.putString(AddMaxSpeedForm.MAX_SPEED_IMPLICIT_COUNTRY, "XX");
    verify(new StringMapEntryAdd(MAXSPEED_TYPE, "XX:flubberway"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 19 with StringMapEntryAdd

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

the class AddMaxSpeedTest method testNormalSign.

public void testNormalSign() {
    bundle.putString(AddMaxSpeedForm.MAX_SPEED, "123");
    verify(new StringMapEntryAdd("maxspeed", "123"), new StringMapEntryAdd(MAXSPEED_TYPE, "sign"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 20 with StringMapEntryAdd

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

the class AddParkingFeeTest method testNo.

public void testNo() {
    bundle.putBoolean(AddParkingFeeForm.FEE, false);
    verify(new StringMapEntryAdd("fee", "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