Changeset 10974 in josm for trunk


Ignore:
Timestamp:
2016-09-08T00:16:47+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #13564 - add unit test with valid URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandlerTest.java

    r10973 r10974  
    105105
    106106    /**
     107     * Test request parameter - case 6
     108     * @throws RequestHandlerBadRequestException never
     109     */
     110    @Test
     111    public void testRequestParameter6() throws RequestHandlerBadRequestException {
     112        final Map<String, String> expected = new HashMap<>();
     113        expected.put("addtags", "wikipedia:de=Weiße_Gasse|maxspeed=5");
     114        expected.put("select", "way23071688,way23076176,way23076177,");
     115        expected.put("left", "13.739727546842");
     116        expected.put("right", "13.740890970188");
     117        expected.put("top", "51.049987191025");
     118        expected.put("bottom", "51.048466954325");
     119        assertEquals(expected, getRequestParameter("http://localhost:8111/load_and_zoom"+
     120                "?addtags=wikipedia%3Ade=Wei%C3%9Fe_Gasse%7Cmaxspeed=5"+
     121                "&select=way23071688,way23076176,way23076177,"+
     122                "&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325"));
     123    }
     124
     125    /**
    107126     * Test request parameter - invalid case
    108127     * @throws RequestHandlerBadRequestException always
Note: See TracChangeset for help on using the changeset viewer.