use of de.westnordost.osmapi.map.data.OsmRelation in project StreetComplete by westnordost.
the class RelationDaoTest method testPutGetNoTags.
public void testPutGetNoTags() {
List<RelationMember> members = new ArrayList<>();
members.add(new OsmRelationMember(0, "outer", Element.Type.WAY));
members.add(new OsmRelationMember(1, "inner", Element.Type.WAY));
Relation relation = new OsmRelation(5, 1, members, null);
dao.put(relation);
Relation dbRelation = dao.get(5);
checkEqual(relation, dbRelation);
}
use of de.westnordost.osmapi.map.data.OsmRelation in project StreetComplete by westnordost.
the class RelationDaoTest method testPutGetWithTags.
public void testPutGetWithTags() {
List<RelationMember> members = new ArrayList<>();
members.add(new OsmRelationMember(0, "outer", Element.Type.WAY));
members.add(new OsmRelationMember(1, "inner", Element.Type.WAY));
Map<String, String> tags = new HashMap<>();
tags.put("a key", "a value");
Relation relation = new OsmRelation(5, 1, members, tags);
dao.put(relation);
Relation dbRelation = dao.get(5);
checkEqual(relation, dbRelation);
}
Aggregations