Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/io/remotecontrol
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/io/remotecontrol
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/AddTagsDialogTest.java
r16328 r17275 2 2 package org.openstreetmap.josm.io.remotecontrol; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 6 import java.util.Map; 7 7 8 import org.junit. Rule;9 import org.junit. Test;8 import org.junit.jupiter.api.extension.RegisterExtension; 9 import org.junit.jupiter.api.Test; 10 10 import org.openstreetmap.josm.testutils.JOSMTestRules; 11 11 … … 15 15 * Unit tests for class {@link AddTagsDialog}. 16 16 */ 17 publicclass AddTagsDialogTest {17 class AddTagsDialogTest { 18 18 /** 19 19 * Setup test. 20 20 */ 21 @R ule21 @RegisterExtension 22 22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 23 23 public JOSMTestRules test = new JOSMTestRules().preferences(); … … 27 27 */ 28 28 @Test 29 publicvoid testParseUrlTagsToKeyValues() {29 void testParseUrlTagsToKeyValues() { 30 30 Map<String, String> strings = AddTagsDialog.parseUrlTagsToKeyValues("wikipedia:de=Residenzschloss Dresden|name:en=Dresden Castle"); 31 31 assertEquals(2, strings.size()); -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.java
r16436 r17275 2 2 package org.openstreetmap.josm.io.remotecontrol; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 6 import java.io.BufferedReader; … … 15 15 import java.util.stream.Collectors; 16 16 17 import org.junit. After;18 import org.junit. Before;19 import org.junit. Rule;20 import org.junit. Test;17 import org.junit.jupiter.api.AfterEach; 18 import org.junit.jupiter.api.BeforeEach; 19 import org.junit.jupiter.api.Test; 20 import org.junit.jupiter.api.extension.RegisterExtension; 21 21 import org.openstreetmap.josm.TestUtils; 22 22 import org.openstreetmap.josm.spi.preferences.Config; … … 32 32 * Unit tests for Remote Control 33 33 */ 34 publicclass RemoteControlTest {34 class RemoteControlTest { 35 35 36 36 private String httpBase; … … 46 46 * Setup test. 47 47 */ 48 @R ule48 @RegisterExtension 49 49 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 50 50 public JOSMTestRules test = new JOSMTestRules().preferences().https().assertionsInEDT(); … … 54 54 * @throws GeneralSecurityException if a security error occurs 55 55 */ 56 @Before 56 @BeforeEach 57 57 public void setUp() throws GeneralSecurityException { 58 58 if (PlatformManager.isPlatformWindows() && "True".equals(System.getenv("APPVEYOR"))) { … … 69 69 * Stops Remote control after testing requests. 70 70 */ 71 @After 71 @AfterEach 72 72 public void tearDown() { 73 73 RemoteControl.stop(); … … 79 79 */ 80 80 @Test 81 publicvoid testHttpListOfCommands() throws Exception {81 void testHttpListOfCommands() throws Exception { 82 82 testListOfCommands(httpBase); 83 83 } -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RequestProcessorTest.java
r16825 r17275 13 13 * @author Taylor Smock 14 14 */ 15 publicclass RequestProcessorTest {15 class RequestProcessorTest { 16 16 /** 17 17 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/19436">#19436</a> 18 18 */ 19 19 @Test 20 publicvoid testFeaturesDoesNotThrowNPE() {20 void testFeaturesDoesNotThrowNPE() { 21 21 assertTrue(RequestProcessor.getHandlersInfo(Arrays.asList("add_node", "/add_node", "", null)) 22 22 .noneMatch(Objects::isNull)); -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandlerTest.java
r16618 r17275 6 6 import static org.junit.jupiter.api.Assertions.assertThrows; 7 7 8 import org.junit. Rule;9 import org.junit. Test;8 import org.junit.jupiter.api.extension.RegisterExtension; 9 import org.junit.jupiter.api.Test; 10 10 import org.openstreetmap.josm.data.osm.DataSet; 11 11 import org.openstreetmap.josm.gui.MainApplication; … … 19 19 * Unit tests of {@link AddNodeHandler} class. 20 20 */ 21 publicclass AddNodeHandlerTest {21 class AddNodeHandlerTest { 22 22 /** 23 23 * Setup test. 24 24 */ 25 @R ule25 @RegisterExtension 26 26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 27 27 public JOSMTestRules test = new JOSMTestRules().main().assertionsInEDT().projection(); … … 38 38 */ 39 39 @Test 40 publicvoid testBadRequestNoLayer() {40 void testBadRequestNoLayer() { 41 41 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost?lat=0&lon=0").handle()); 42 42 assertEquals("There is no layer opened to add node", e.getMessage()); … … 47 47 */ 48 48 @Test 49 publicvoid testBadRequestNoParam() {49 void testBadRequestNoParam() { 50 50 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null); 51 51 MainApplication.getLayerManager().addLayer(layer); … … 58 58 */ 59 59 @Test 60 publicvoid testBadRequestInvalidUrl() {60 void testBadRequestInvalidUrl() { 61 61 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("invalid_url").handle()); 62 62 assertEquals("The following keys are mandatory, but have not been provided: lat, lon", e.getMessage()); … … 67 67 */ 68 68 @Test 69 publicvoid testBadRequestIncompleteUrl() {69 void testBadRequestIncompleteUrl() { 70 70 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost").handle()); 71 71 assertEquals("The following keys are mandatory, but have not been provided: lat, lon", e.getMessage()); … … 76 76 */ 77 77 @Test 78 publicvoid testNominalRequest() {78 void testNominalRequest() { 79 79 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null); 80 80 MainApplication.getLayerManager().addLayer(layer); -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandlerTest.java
r16618 r17275 6 6 import static org.junit.jupiter.api.Assertions.assertThrows; 7 7 8 import org.junit. Rule;9 import org.junit. Test;8 import org.junit.jupiter.api.extension.RegisterExtension; 9 import org.junit.jupiter.api.Test; 10 10 import org.openstreetmap.josm.data.osm.DataSet; 11 11 import org.openstreetmap.josm.gui.MainApplication; … … 19 19 * Unit tests of {@link AddWayHandler} class. 20 20 */ 21 publicclass AddWayHandlerTest {21 class AddWayHandlerTest { 22 22 /** 23 23 * Setup test. 24 24 */ 25 @R ule25 @RegisterExtension 26 26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 27 27 public JOSMTestRules test = new JOSMTestRules(); … … 38 38 */ 39 39 @Test 40 publicvoid testBadRequestNoLayer() {40 void testBadRequestNoLayer() { 41 41 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost?way=0,0;1,1").handle()); 42 42 assertEquals("There is no layer opened to add way", e.getMessage()); … … 47 47 */ 48 48 @Test 49 publicvoid testBadRequestNoParam() {49 void testBadRequestNoParam() { 50 50 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null); 51 51 try { … … 62 62 */ 63 63 @Test 64 publicvoid testBadRequestInvalidUrl() {64 void testBadRequestInvalidUrl() { 65 65 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("invalid_url").handle()); 66 66 assertEquals("The following keys are mandatory, but have not been provided: way", e.getMessage()); … … 71 71 */ 72 72 @Test 73 publicvoid testBadRequestIncompleteUrl() {73 void testBadRequestIncompleteUrl() { 74 74 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost").handle()); 75 75 assertEquals("The following keys are mandatory, but have not been provided: way", e.getMessage()); … … 80 80 */ 81 81 @Test 82 publicvoid testNominalRequest() {82 void testNominalRequest() { 83 83 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null); 84 84 try { -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandlerTest.java
r16739 r17275 4 4 import static org.hamcrest.CoreMatchers.hasItem; 5 5 import static org.hamcrest.MatcherAssert.assertThat; 6 import static org.junit. Assert.assertEquals;6 import static org.junit.jupiter.api.Assertions.assertEquals; 7 7 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; 8 8 import static org.junit.jupiter.api.Assertions.assertThrows; … … 11 11 import java.util.List; 12 12 13 import org.junit. Rule;14 import org.junit. Test;13 import org.junit.jupiter.api.extension.RegisterExtension; 14 import org.junit.jupiter.api.Test; 15 15 import org.openstreetmap.josm.data.imagery.ImageryInfo; 16 16 import org.openstreetmap.josm.io.remotecontrol.handler.RequestHandler.RequestHandlerBadRequestException; … … 22 22 * Unit tests of {@link ImageryHandler} class. 23 23 */ 24 publicclass ImageryHandlerTest {24 class ImageryHandlerTest { 25 25 /** 26 26 * Setup test. 27 27 */ 28 @R ule28 @RegisterExtension 29 29 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 30 30 public JOSMTestRules test = new JOSMTestRules(); … … 41 41 */ 42 42 @Test 43 publicvoid testBadRequestNoParam() {43 void testBadRequestNoParam() { 44 44 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler(null).handle()); 45 45 assertEquals("Parameter must not be null", e.getMessage()); … … 51 51 */ 52 52 @Test 53 publicvoid testBadRequestInvalidUrl() {53 void testBadRequestInvalidUrl() { 54 54 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("invalid_url").handle()); 55 55 assertEquals("The following keys are mandatory, but have not been provided: url", e.getMessage()); … … 60 60 */ 61 61 @Test 62 publicvoid testBadRequestIncompleteUrl() {62 void testBadRequestIncompleteUrl() { 63 63 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost").handle()); 64 64 assertEquals("The following keys are mandatory, but have not been provided: url", e.getMessage()); … … 69 69 */ 70 70 @Test 71 publicvoid testNominalRequest() {71 void testNominalRequest() { 72 72 assertDoesNotThrow(() -> newHandler("https://localhost?url=foo").handle()); 73 73 } … … 78 78 */ 79 79 @Test 80 publicvoid testOptionalParams() throws Exception {80 void testOptionalParams() throws Exception { 81 81 List<String> optionalParams = Arrays.asList(newHandler("").getOptionalParams()); 82 82 assertThat(optionalParams, hasItem("type")); … … 91 91 */ 92 92 @Test 93 publicvoid testBuildImageryInfo() throws Exception {93 void testBuildImageryInfo() throws Exception { 94 94 String url = "https://localhost/imagery?title=osm" 95 95 + "&type=tms&min_zoom=3&max_zoom=23&category=osmbasedmap&country_code=XA" … … 110 110 */ 111 111 @Test 112 publicvoid testTicket19483() throws Exception {112 void testTicket19483() throws Exception { 113 113 String url = "https://localhost/imagery?url=" + 114 114 "tms[3-7]%3Ahttps%3A%2F%2Fservices.digitalglobe.com%2Fearthservice%2Ftmsaccess%2F" + -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandlerTest.java
r16618 r17275 2 2 package org.openstreetmap.josm.io.remotecontrol.handler; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; 6 6 import static org.junit.jupiter.api.Assertions.assertThrows; … … 8 8 import java.io.File; 9 9 10 import org.junit. Rule;11 import org.junit. Test;10 import org.junit.jupiter.api.extension.RegisterExtension; 11 import org.junit.jupiter.api.Test; 12 12 import org.openstreetmap.josm.TestUtils; 13 13 import org.openstreetmap.josm.gui.MainApplication; … … 22 22 * Unit tests of {@link ImportHandler} class. 23 23 */ 24 publicclass ImportHandlerTest {24 class ImportHandlerTest { 25 25 /** 26 26 * Setup test. 27 27 */ 28 @R ule28 @RegisterExtension 29 29 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 30 30 public JOSMTestRules test = new JOSMTestRules().main(); … … 42 42 */ 43 43 @Test 44 publicvoid testTicket7434() throws Exception {44 void testTicket7434() throws Exception { 45 45 ImportHandler req = newHandler("http://localhost:8111/import?url=http://localhost:8888/relations?relations=19711&mode=recursive"); 46 46 assertEquals("http://localhost:8888/relations?relations=19711&mode=recursive", req.args.get("url")); … … 52 52 */ 53 53 @Test 54 publicvoid testBadRequestNoParam() throws Exception {54 void testBadRequestNoParam() throws Exception { 55 55 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler(null).handle()); 56 56 assertEquals("MalformedURLException: null", e.getMessage()); … … 62 62 */ 63 63 @Test 64 publicvoid testBadRequestInvalidUrl() throws Exception {64 void testBadRequestInvalidUrl() throws Exception { 65 65 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost?url=invalid_url").handle()); 66 66 assertEquals("MalformedURLException: no protocol: invalid_url", e.getMessage()); … … 72 72 */ 73 73 @Test 74 publicvoid testBadRequestIncompleteUrl() throws Exception {74 void testBadRequestIncompleteUrl() throws Exception { 75 75 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost").handle()); 76 76 assertEquals("The following keys are mandatory, but have not been provided: url", e.getMessage()); … … 82 82 */ 83 83 @Test 84 publicvoid testNominalRequest() throws Exception {84 void testNominalRequest() throws Exception { 85 85 String url = new File(TestUtils.getRegressionDataFile(11957, "data.osm")).toURI().toURL().toExternalForm(); 86 86 try { -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandlerTest.java
r16618 r17275 6 6 import static org.junit.jupiter.api.Assertions.assertThrows; 7 7 8 import org.junit. Rule;9 import org.junit. Test;8 import org.junit.jupiter.api.extension.RegisterExtension; 9 import org.junit.jupiter.api.Test; 10 10 import org.openstreetmap.josm.io.remotecontrol.handler.RequestHandler.RequestHandlerBadRequestException; 11 11 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 16 16 * Unit tests of {@link LoadAndZoomHandler} class. 17 17 */ 18 publicclass LoadAndZoomHandlerTest {18 class LoadAndZoomHandlerTest { 19 19 /** 20 20 * Setup test. 21 21 */ 22 @R ule22 @RegisterExtension 23 23 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 24 24 public JOSMTestRules test = new JOSMTestRules(); … … 36 36 */ 37 37 @Test 38 publicvoid testBadRequestNoParam() throws Exception {38 void testBadRequestNoParam() throws Exception { 39 39 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler(null).handle()); 40 40 assertEquals("NumberFormatException (empty String)", e.getMessage()); … … 46 46 */ 47 47 @Test 48 publicvoid testBadRequestInvalidUrl() throws Exception {48 void testBadRequestInvalidUrl() throws Exception { 49 49 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("invalid_url").handle()); 50 50 assertEquals("The following keys are mandatory, but have not been provided: bottom, top, left, right", e.getMessage()); … … 56 56 */ 57 57 @Test 58 publicvoid testBadRequestIncompleteUrl() throws Exception {58 void testBadRequestIncompleteUrl() throws Exception { 59 59 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost").handle()); 60 60 assertEquals("The following keys are mandatory, but have not been provided: bottom, top, left, right", e.getMessage()); … … 66 66 */ 67 67 @Test 68 publicvoid testNominalRequest() throws Exception {68 void testNominalRequest() throws Exception { 69 69 assertDoesNotThrow(() -> newHandler("https://localhost?bottom=0&top=0&left=1&right=1").handle()); 70 70 } -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/LoadObjectHandlerTest.java
r16618 r17275 6 6 import static org.junit.jupiter.api.Assertions.assertThrows; 7 7 8 import org.junit. Rule;9 import org.junit. Test;8 import org.junit.jupiter.api.extension.RegisterExtension; 9 import org.junit.jupiter.api.Test; 10 10 import org.openstreetmap.josm.io.remotecontrol.handler.RequestHandler.RequestHandlerBadRequestException; 11 11 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 16 16 * Unit tests of {@link LoadObjectHandler} class. 17 17 */ 18 publicclass LoadObjectHandlerTest {18 class LoadObjectHandlerTest { 19 19 /** 20 20 * Setup test. 21 21 */ 22 @R ule22 @RegisterExtension 23 23 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 24 24 public JOSMTestRules test = new JOSMTestRules(); … … 35 35 */ 36 36 @Test 37 publicvoid testBadRequestNoParam() {37 void testBadRequestNoParam() { 38 38 assertDoesNotThrow(() -> newHandler(null).handle()); 39 39 } … … 43 43 */ 44 44 @Test 45 publicvoid testBadRequestInvalidUrl() {45 void testBadRequestInvalidUrl() { 46 46 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("invalid_url").handle()); 47 47 assertEquals("The following keys are mandatory, but have not been provided: objects", e.getMessage()); … … 52 52 */ 53 53 @Test 54 publicvoid testBadRequestIncompleteUrl() {54 void testBadRequestIncompleteUrl() { 55 55 Exception e = assertThrows(RequestHandlerBadRequestException.class, () -> newHandler("https://localhost").handle()); 56 56 assertEquals("The following keys are mandatory, but have not been provided: objects", e.getMessage()); … … 61 61 */ 62 62 @Test 63 publicvoid testNominalRequest() {63 void testNominalRequest() { 64 64 assertDoesNotThrow(() -> newHandler("https://localhost?objects=foo,bar").handle()); 65 65 } -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandlerTest.java
r12558 r17275 2 2 package org.openstreetmap.josm.io.remotecontrol.handler; 3 3 4 import static org.junit.Assert.assertEquals; 4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertThrows; 5 6 6 7 import java.util.Collections; … … 8 9 import java.util.Map; 9 10 10 import org.junit. Rule;11 import org.junit. Test;11 import org.junit.jupiter.api.Test; 12 import org.junit.jupiter.api.extension.RegisterExtension; 12 13 import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault; 13 14 import org.openstreetmap.josm.io.remotecontrol.handler.RequestHandler.RequestHandlerBadRequestException; … … 19 20 * Unit tests of {@link RequestHandler} class. 20 21 */ 21 publicclass RequestHandlerTest {22 class RequestHandlerTest { 22 23 23 24 /** 24 25 * Setup test. 25 26 */ 26 @R ule27 @RegisterExtension 27 28 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 29 public JOSMTestRules test = new JOSMTestRules(); … … 62 63 */ 63 64 @Test 64 publicvoid testRequestParameter1() throws RequestHandlerBadRequestException {65 void testRequestParameter1() throws RequestHandlerBadRequestException { 65 66 final Map<String, String> expected = new HashMap<>(); 66 67 expected.put("query", "a"); … … 74 75 */ 75 76 @Test 76 publicvoid testRequestParameter2() throws RequestHandlerBadRequestException {77 void testRequestParameter2() throws RequestHandlerBadRequestException { 77 78 assertEquals(Collections.singletonMap("query", "a&b==c"), 78 79 getRequestParameter("http://example.com/?query=a%26b==c")); … … 84 85 */ 85 86 @Test 86 publicvoid testRequestParameter3() throws RequestHandlerBadRequestException {87 void testRequestParameter3() throws RequestHandlerBadRequestException { 87 88 assertEquals(Collections.singleton("blue+light blue"), 88 89 getRequestParameter("http://example.com/blue+light%20blue?blue%2Blight+blue").keySet()); … … 96 97 */ 97 98 @Test 98 publicvoid testRequestParameter4() throws RequestHandlerBadRequestException {99 void testRequestParameter4() throws RequestHandlerBadRequestException { 99 100 assertEquals(Collections.singletonMap("/?:@-._~!$'()* ,;", "/?:@-._~!$'()* ,;=="), getRequestParameter( 100 101 "http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;=" … … 107 108 */ 108 109 @Test 109 publicvoid testRequestParameter5() throws RequestHandlerBadRequestException {110 void testRequestParameter5() throws RequestHandlerBadRequestException { 110 111 final Map<String, String> expected = new HashMap<>(); 111 112 expected.put("space", " "); … … 119 120 */ 120 121 @Test 121 publicvoid testRequestParameter6() throws RequestHandlerBadRequestException {122 void testRequestParameter6() throws RequestHandlerBadRequestException { 122 123 final Map<String, String> expected = new HashMap<>(); 123 124 expected.put("addtags", "wikipedia:de=Weiße_Gasse|maxspeed=5"); … … 135 136 /** 136 137 * Test request parameter - invalid case 137 * @throws RequestHandlerBadRequestException always138 138 */ 139 @Test(expected = RequestHandlerBadRequestException.class) 140 public void testRequestParameterInvalid() throws RequestHandlerBadRequestException { 141 getRequestParameter("http://localhost:8111/load_and_zoom"+ 139 @Test 140 void testRequestParameterInvalid() { 141 assertThrows(RequestHandlerBadRequestException.class, 142 () -> getRequestParameter("http://localhost:8111/load_and_zoom"+ 142 143 "?addtags=wikipedia:de=Wei%C3%9Fe_Gasse|maxspeed=5"+ 143 144 "&select=way23071688,way23076176,way23076177,"+ 144 "&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325") ;145 "&left=13.739727546842&right=13.740890970188&top=51.049987191025&bottom=51.048466954325")); 145 146 } 146 147 }
Note:
See TracChangeset
for help on using the changeset viewer.