source: josm/trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandlerTest.java@ 8193

Last change on this file since 8193 was 8193, checked in by simon04, 9 years ago

Remote control: improve, harmonize, test URL parsing

File size: 550 bytes
Line 
1package org.openstreetmap.josm.io.remotecontrol.handler;
2
3import org.hamcrest.CoreMatchers;
4import org.junit.Test;
5
6import static org.junit.Assert.*;
7
8public class ImportHandlerTest {
9
10 @Test
11 public void test7434() throws Exception {
12
13 final ImportHandler req = new ImportHandler();
14 req.setUrl("http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive");
15 assertThat(req.args.get("url"), CoreMatchers.is("http://localhost:8888/relations?relations=19711&mode=recursive"));
16
17 }
18
19}
Note: See TracBrowser for help on using the repository browser.