use of de.westnordost.osmapi.map.data.Node in project StreetComplete by westnordost.
the class NodeDaoTest method testPutGetWithTags.
public void testPutGetWithTags() {
Map<String, String> tags = new HashMap<>();
tags.put("a key", "a value");
LatLon pos = new OsmLatLon(2, 2);
Node node = new OsmNode(5, 1, pos, tags);
dao.put(node);
Node dbNode = dao.get(5);
checkEqual(node, dbNode);
}
use of de.westnordost.osmapi.map.data.Node in project StreetComplete by westnordost.
the class NodeDaoTest method testPutGetNoTags.
public void testPutGetNoTags() {
LatLon pos = new OsmLatLon(2, 2);
Node node = new OsmNode(5, 1, pos, null);
dao.put(node);
Node dbNode = dao.get(5);
checkEqual(node, dbNode);
}
Aggregations