Changeset 35586 in osm for applications/editors/josm/plugins/comfort0/test
- Timestamp:
- 2020-10-15T21:28:47+02:00 (4 years ago)
- Location:
- applications/editors/josm/plugins/comfort0/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/comfort0/test/data/example.osm
r35282 r35586 25 25 <!--...--> 26 26 <member type="node" ref="249673494" role=""/> 27 <tag k="name" v="Küstenbus Linie 123 "/>27 <tag k="name" v="Küstenbus Linie 123–124"/> 28 28 <tag k="network" v="VVW"/> 29 29 <tag k="operator" v="Regionalverkehr Küste"/> -
applications/editors/josm/plugins/comfort0/test/unit/net/simon04/comfort0/OsmToLevel0LTest.java
r35584 r35586 61 61 " nd 261728686 #261728686 (54.0906309, 12.2441924)\n" + 62 62 "\n" + 63 "relation 56688 #route (\"Küstenbus Linie 123 \", 4 members, incomplete)\n" +64 " name = Küstenbus Linie 123 \n" +63 "relation 56688 #route (\"Küstenbus Linie 123–124\", 4 members, incomplete)\n" + 64 " name = Küstenbus Linie 123–124\n" + 65 65 " network = VVW\n" + 66 66 " operator = Regionalverkehr Küste\n" + -
applications/editors/josm/plugins/comfort0/test/unit/net/simon04/comfort0/level0l/parsergen/Level0LParserTest.java
r35291 r35586 8 8 import java.util.List; 9 9 10 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 11 import org.junit.Rule; 10 12 import org.junit.Test; 11 13 import org.openstreetmap.josm.data.osm.NodeData; … … 14 16 import org.openstreetmap.josm.data.osm.RelationData; 15 17 import org.openstreetmap.josm.data.osm.WayData; 18 import org.openstreetmap.josm.testutils.JOSMTestRules; 16 19 17 20 public class Level0LParserTest { 21 22 /** 23 * Setup rule 24 */ 25 @Rule 26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 27 public JOSMTestRules test = new JOSMTestRules().preferences(); 28 18 29 @Test 19 30 public void testNode() throws Exception { … … 59 70 " wy 4579143 forward\n" + 60 71 " nd 249673494 stop # the end\n" + 61 " name = Küstenbus Linie 123 \n" +72 " name = Küstenbus Linie 123–124\n" + 62 73 " network = VVW\n" + 63 74 " operator = Regionalverkehr Küste\n" + … … 67 78 final RelationData relation = new Level0LParser(new StringReader(level0l)).relation(); 68 79 assertThat(relation.getId(), is(56688L)); 80 assertThat(relation.getName(), is("Küstenbus Linie 123–124")); 69 81 assertThat(relation.getMembersCount(), is(4)); 70 82 assertThat(relation.getMembers().get(0).getMemberId(), is(294942404L));
Note:
See TracChangeset
for help on using the changeset viewer.