Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (6 years ago)
Author:
Don-vip
Message:

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

File:
1 edited

Legend:

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

    r16612 r17275  
    22package org.openstreetmap.josm.io;
    33
    4 import static org.junit.Assert.assertEquals;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
    55
    66import java.util.Arrays;
    77import java.util.List;
    88
    9 import org.junit.Rule;
    10 import org.junit.Test;
     9import org.junit.jupiter.api.extension.RegisterExtension;
     10import org.junit.jupiter.api.Test;
    1111import org.openstreetmap.josm.data.osm.Node;
    1212import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    2020 * Unit tests of {@link MultiFetchOverpassObjectReader}.
    2121 */
    22 public class MultiFetchOverpassObjectReaderTest {
     22class MultiFetchOverpassObjectReaderTest {
    2323
    2424    /**
    2525     * Setup test.
    2626     */
    27     @Rule
     27    @RegisterExtension
    2828    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2929    public JOSMTestRules test = new JOSMTestRules().preferences();
     
    3333     */
    3434    @Test
    35     public void testBuildRequestNodesString() {
     35    void testBuildRequestNodesString() {
    3636        List<OsmPrimitive> objects = Arrays.asList(new Node(123), new Node(126), new Node(130));
    3737        String requestString;
     
    6161     */
    6262    @Test
    63     public void testBuildRequestWaysString() {
     63    void testBuildRequestWaysString() {
    6464        List<OsmPrimitive> objects = Arrays.asList(new Way(123), new Way(126), new Way(130));
    6565        String requestString;
     
    8686     */
    8787    @Test
    88     public void testBuildRequestRelationsString() {
     88    void testBuildRequestRelationsString() {
    8989        List<OsmPrimitive> objects = Arrays.asList(new Relation(123), new Relation(126), new Relation(130));
    9090        String requestString;
     
    112112     */
    113113    @Test
    114     public void testBuildComplexString() {
     114    void testBuildComplexString() {
    115115        List<OsmPrimitive> objects = Arrays.asList(new Relation(123), new Relation(126), new Relation(130), new Way(88), new Way(99),
    116116                new Node(1));
Note: See TracChangeset for help on using the changeset viewer.