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 | |
---|
1 | package org.openstreetmap.josm.io.remotecontrol.handler;
|
---|
2 |
|
---|
3 | import org.hamcrest.CoreMatchers;
|
---|
4 | import org.junit.Test;
|
---|
5 |
|
---|
6 | import static org.junit.Assert.*;
|
---|
7 |
|
---|
8 | public 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.