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