Changeset 16606 in josm for trunk/test


Ignore:
Timestamp:
2020-06-11T20:03:41+02:00 (4 years ago)
Author:
simon04
Message:

see #19320 - Fix URL encoding for taghistory.raifer.tech

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TaginfoActionTest.java

    r16597 r16606  
    3131        assertEquals("https://taginfo.openstreetmap.org/keys/railway", action.getTaginfoUrlForTag(new Tag("railway")));
    3232        assertEquals("https://taginfo.openstreetmap.org/tags/railway=tram", action.getTaginfoUrlForTag(new Tag("railway", "tram")));
     33        assertEquals("https://taginfo.openstreetmap.org/tags/addr%3Acity=Bassum%3ACity",
     34                action.getTaginfoUrlForTag(new Tag("addr:city", "Bassum:City")));
    3335        assertEquals("https://taginfo.openstreetmap.org/relations/route", action.getTaginfoUrlForRelationType("route"));
    3436    }
     
    4850     */
    4951    @Test
    50     public void testTagHistoryUrls() {
     52    public void testTagHistoryUrls() throws Exception {
    5153        TaginfoAction action = new TaginfoAction(() -> null, () -> null).toTagHistoryAction();
    5254        assertEquals("https://taghistory.raifer.tech/#***/railway/", action.getTaginfoUrlForTag(new Tag("railway")));
    5355        assertEquals("https://taghistory.raifer.tech/#***/railway/tram", action.getTaginfoUrlForTag(new Tag("railway", "tram")));
     56        assertEquals("https://taghistory.raifer.tech/#***/addr:city/Bassum:City",
     57                action.getTaginfoUrlForTag(new Tag("addr:city", "Bassum:City")));
    5458        assertNull(action.getTaginfoUrlForRelationType("route"));
    5559    }
Note: See TracChangeset for help on using the changeset viewer.