Changeset 17876 in josm for trunk/test
- Timestamp:
- 2021-05-06T22:37:43+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetItemGuiSupportTest.java
r17611 r17876 37 37 void testTemplate() throws Exception { 38 38 ArrayList<Tag> tags = new ArrayList<>(Arrays.asList( 39 new Tag("route", "bus"), 39 40 new Tag("name", "xxx"), 40 41 new Tag("from", "Foo"), … … 46 47 TemplateEntry templateEntry = new TemplateParser("Bus {ref}: {from} -> {to}").parse(); 47 48 assertEquals("Bus 42: Foo -> Bar", templateEntry.getText(support)); 49 templateEntry = new TemplateParser("?{route=train 'Train'|route=bus 'Bus'|'X'} {ref}: {from} -> {to}").parse(); 50 assertEquals("Bus 42: Foo -> Bar", templateEntry.getText(support)); 48 51 } 49 52 }
Note:
See TracChangeset
for help on using the changeset viewer.