Changeset 16825 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2020-08-02T22:16:18+02:00 (4 years ago)
Author:
simon04
Message:

fix #19400 - Remote control: generate OpenAPI specification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RequestProcessorTest.java

    r16767 r16825  
    22package org.openstreetmap.josm.io.remotecontrol;
    33
    4 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
     4import static org.junit.jupiter.api.Assertions.assertTrue;
    55
    66import java.util.Arrays;
     7import java.util.Objects;
    78
    89import org.junit.jupiter.api.Test;
     
    1819    @Test
    1920    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));
    2123    }
    2224}
Note: See TracChangeset for help on using the changeset viewer.