Changeset 35284 in osm for applications/editors/josm/plugins/comfort0/test
- Timestamp:
- 2020-01-13T21:45:14+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/comfort0/test/unit/net/simon04/comfort0/level0l/parsergen/Level0LParserTest.java
r35283 r35284 2 2 3 3 import static org.hamcrest.CoreMatchers.is; 4 import static org.junit.Assert. *;4 import static org.junit.Assert.assertThat; 5 5 6 6 import java.io.StringReader; … … 12 12 @Test 13 13 public void testNode() throws Exception { 14 final NodeData node = new Level0LParser(new StringReader("node 298884272: 54.0901447, 12.2516513\n")).node(); 14 final String level0l = "" + 15 "node 298884272: 54.0901447, 12.2516513\n" + 16 " name = Neu Broderstorf\n" + 17 " traffic_sign = city_limit\n"; 18 final NodeData node = new Level0LParser(new StringReader(level0l)).node(); 15 19 assertThat(node.getId(), is(298884272L)); 16 20 assertThat(node.getCoor().lat(), is(54.0901447)); 17 21 assertThat(node.getCoor().lon(), is(12.2516513)); 18 22 assertThat(node.getKeys().size(), is(2)); 23 assertThat(node.getKeys().get("name"), is("Neu Broderstorf")); 24 assertThat(node.getKeys().get("traffic_sign"), is("city_limit")); 19 25 } 20 26 }
Note:
See TracChangeset
for help on using the changeset viewer.