Search in sources :

Example 46 with StringMapEntryAdd

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

the class AddMaxSpeedTest method testAdvisoryNormalSign.

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

Example 47 with StringMapEntryAdd

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

the class AddMaxSpeedTest method testZoneSign.

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

Example 48 with StringMapEntryAdd

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

the class AddParkingFeeTest method testYes.

public void testYes() {
    bundle.putBoolean(AddParkingFeeForm.FEE, true);
    verify(new StringMapEntryAdd("fee", "yes"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 49 with StringMapEntryAdd

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

the class AddParkingFeeTest method testYesButNotAt.

public void testYesButNotAt() {
    bundle.putBoolean(AddParkingFeeForm.FEE, true);
    bundle.putString(AddParkingFeeForm.FEE_CONDITONAL_HOURS, "xyz");
    verify(new StringMapEntryAdd("fee", "yes"), new StringMapEntryAdd("fee:conditional", "no @ (xyz)"));
}
Also used : StringMapEntryAdd(de.westnordost.streetcomplete.data.osm.changes.StringMapEntryAdd)

Example 50 with StringMapEntryAdd

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

the class AddPlaceNameTest method testNoName.

public void testNoName() {
    bundle.putBoolean(AddPlaceNameForm.NO_NAME, true);
    verify(new StringMapEntryAdd("noname", "yes"));
}
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