public static Node buildSampleNode() {
return buildSampleNode(1);
}
public static Way buildSampleWay(long id, long... nodeIds) {
List<Tag> tags = Arrays.asList(new Tag[] { new Tag("highway", "residential") });
CommonEntityData entityData = new CommonEntityData(id, 0, new Date(), new OsmUser(1, "nco"), 1l, tags);
List<WayNode> wayNodes = new ArrayList<WayNode>();
for (int i = 0; i < nodeIds.length; i++)
wayNodes.add(new WayNode(nodeIds[i]));
return new Way(entityData, wayNodes);