Changeset 16825 in josm for trunk/test/unit
- Timestamp:
- 2020-08-02T22:16:18+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RequestProcessorTest.java
r16767 r16825 2 2 package org.openstreetmap.josm.io.remotecontrol; 3 3 4 import static org.junit.jupiter.api.Assertions.assert DoesNotThrow;4 import static org.junit.jupiter.api.Assertions.assertTrue; 5 5 6 6 import java.util.Arrays; 7 import java.util.Objects; 7 8 8 9 import org.junit.jupiter.api.Test; … … 18 19 @Test 19 20 public void testFeaturesDoesNotThrowNPE() { 20 assertDoesNotThrow(() -> RequestProcessor.getHandlersInfoAsJSON(Arrays.asList("add_node", "/add_node", "", null))); 21 assertTrue(RequestProcessor.getHandlersInfo(Arrays.asList("add_node", "/add_node", "", null)) 22 .noneMatch(Objects::isNull)); 21 23 } 22 24 }
Note:
See TracChangeset
for help on using the changeset viewer.