Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (13 months 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/protocols/data/HandlerTest.java

    r10931 r17275  
    22package org.openstreetmap.josm.io.protocols.data;
    33
    4 import static org.junit.Assert.assertNotNull;
     4import static org.junit.jupiter.api.Assertions.assertNotNull;
    55
    66import java.io.IOException;
     
    88import java.net.URLConnection;
    99
    10 import org.junit.Before;
    11 import org.junit.Rule;
    12 import org.junit.Test;
     10import org.junit.jupiter.api.BeforeEach;
     11import org.junit.jupiter.api.Test;
     12import org.junit.jupiter.api.extension.RegisterExtension;
    1313import org.openstreetmap.josm.testutils.JOSMTestRules;
    1414
     
    1616 * Unit tests of {@link Handler} class.
    1717 */
    18 public class HandlerTest {
     18class HandlerTest {
    1919
    2020    /**
    2121     * Use the test rules to remove any layers and reset state.
    2222     */
    23     @Rule
     23    @RegisterExtension
    2424    public final JOSMTestRules rules = new JOSMTestRules();
    2525
     
    2727     * Setup test.
    2828     */
    29     @Before
     29    @BeforeEach
    3030    public void setUp() {
    3131        Handler.install();
     
    3737     */
    3838    @Test
    39     public void testBase64Image() throws IOException {
     39    void testBase64Image() throws IOException {
    4040        // Red dot image, taken from https://en.wikipedia.org/wiki/Data_URI_scheme#HTML
    4141        URLConnection connection = new Handler().openConnection(new URL("data:image/png;base64," +
Note: See TracChangeset for help on using the changeset viewer.