Changeset 17735 in josm for trunk/test/unit


Ignore:
Timestamp:
2021-04-09T23:02:40+02:00 (4 years ago)
Author:
simon04
Message:

fix #19754 - Tag2Link: support multi-values for URLs in website/source/url/image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/Tag2LinkTest.java

    r17275 r17735  
    123123    }
    124124
     125    /**
     126     * Unit test of function {@link Tag2Link#getLinksForTag}.
     127     *
     128     * Non-regression test for https://josm.openstreetmap.de/ticket/19754#comment:9
     129     */
     130    @Test
     131    void testMultipleSources() {
     132        Tag2Link.getLinksForTag("source", "https://foo.com/; https://bar.com/; https://baz.com/", this::addLink);
     133        checkLinks("Open foo.com // https://foo.com/",
     134                "Open bar.com // https://bar.com/",
     135                "Open baz.com // https://baz.com/");
     136    }
     137
    125138}
Note: See TracChangeset for help on using the changeset viewer.