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

Last change on this file since 8857 was 8857, checked in by Don-vip, 9 years ago

improve/cleanup unit tests

  • Property svn:eol-style set to native
File size: 659 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io.remotecontrol.handler;
3
4import static org.junit.Assert.assertThat;
5
6import org.hamcrest.CoreMatchers;
7import org.junit.Test;
8
9/**
10 * Unit tests of {@link ImportHandler} class.
11 */
12public class ImportHandlerTest {
13
14 @Test
15 public void test7434() throws Exception {
16
17 final ImportHandler req = new ImportHandler();
18 req.setUrl("http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive");
19 assertThat(req.args.get("url"), CoreMatchers.is("http://localhost:8888/relations?relations=19711&mode=recursive"));
20 }
21}
Note: See TracBrowser for help on using the repository browser.