Last change
on this file since 16767 was 16767, checked in by simon04, 4 years ago |
fix #19436 - RequestProcessor: do not add null objects to a JsonArray (patch by taylor.smock, modified)
|
File size:
635 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.io.remotecontrol;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
---|
5 |
|
---|
6 | import java.util.Arrays;
|
---|
7 |
|
---|
8 | import org.junit.jupiter.api.Test;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * Tests for {@link RequestProcessor}
|
---|
12 | * @author Taylor Smock
|
---|
13 | */
|
---|
14 | public class RequestProcessorTest {
|
---|
15 | /**
|
---|
16 | * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/19436">#19436</a>
|
---|
17 | */
|
---|
18 | @Test
|
---|
19 | public void testFeaturesDoesNotThrowNPE() {
|
---|
20 | assertDoesNotThrow(() -> RequestProcessor.getHandlersInfoAsJSON(Arrays.asList("add_node", "/add_node", "", null)));
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.