Ignore:
Timestamp:
2016-09-08T00:02:03+02:00 (8 years ago)
Author:
Don-vip
Message:

see #13564 - proper management of invalid URLs in remote control handlers + add unit test

File:
1 edited

Legend:

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

    r10436 r10973  
    3636    }
    3737
    38     private static ImportHandler newHandler(String url) {
     38    private static ImportHandler newHandler(String url) throws RequestHandlerBadRequestException {
    3939        ImportHandler req = new ImportHandler();
    4040        if (url != null)
     
    4545    /**
    4646     * Non-regression test for bug #7434.
     47     * @throws Exception if any error occurs
    4748     */
    4849    @Test
    49     public void testTicket7434() {
     50    public void testTicket7434() throws Exception {
    5051        ImportHandler req = newHandler("http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive");
    5152        assertEquals("http://localhost:8888/relations?relations=19711&mode=recursive", req.args.get("url"));
Note: See TracChangeset for help on using the changeset viewer.