Changeset 8509 in josm for trunk/test/unit/org/openstreetmap/josm/io
- Timestamp:
- 2015-06-20T14:36:00+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandlerTest.java
r8193 r8509 1 // License: GPL. For details, see LICENSE file. 1 2 package org.openstreetmap.josm.io.remotecontrol.handler; 3 4 import static org.junit.Assert.assertThat; 2 5 3 6 import org.hamcrest.CoreMatchers; 4 7 import org.junit.Test; 5 6 import static org.junit.Assert.*;7 8 8 9 public class ImportHandlerTest { … … 14 15 req.setUrl("http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive"); 15 16 assertThat(req.args.get("url"), CoreMatchers.is("http://localhost:8888/relations?relations=19711&mode=recursive")); 16 17 17 } 18 19 18 } -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandlerTest.java
r8193 r8509 1 // License: GPL. For details, see LICENSE file. 1 2 package org.openstreetmap.josm.io.remotecontrol.handler; 2 3 3 import org.junit.Test;4 import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault;4 import static org.hamcrest.CoreMatchers.is; 5 import static org.junit.Assert.assertThat; 5 6 6 7 import java.util.Collections; … … 8 9 import java.util.Map; 9 10 10 import static org.hamcrest.CoreMatchers.is;11 import static org.junit.Assert.*;11 import org.junit.Test; 12 import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault; 12 13 13 14 public class RequestHandlerTest { … … 70 71 @Test 71 72 public void testRequestParameter4() { 72 assertThat(getRequestParameter("http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;="), 73 assertThat(getRequestParameter( 74 "http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;="), 73 75 is(Collections.singletonMap("/?:@-._~!$'()* ,;", "/?:@-._~!$'()* ,;=="))); 74 76 } … … 82 84 is(expected)); 83 85 } 84 85 86 }
Note:
See TracChangeset
for help on using the changeset viewer.