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/rtklib/RtkLibPosReaderTest.java

    r16006 r17275  
    22package org.openstreetmap.josm.io.rtklib;
    33
    4 import static org.junit.Assert.assertEquals;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
    55
    66import java.io.IOException;
     
    1212import java.util.TimeZone;
    1313
    14 import org.junit.Before;
    15 import org.junit.Rule;
    16 import org.junit.Test;
     14import org.junit.jupiter.api.BeforeEach;
     15import org.junit.jupiter.api.Test;
     16import org.junit.jupiter.api.extension.RegisterExtension;
    1717import org.openstreetmap.josm.data.coor.LatLon;
    1818import org.openstreetmap.josm.data.gpx.GpxConstants;
     
    2727 * Unit tests of {@link RtkLibPosReader} class.
    2828 */
    29 public class RtkLibPosReaderTest {
     29class RtkLibPosReaderTest {
    3030    /**
    3131     * Set the timezone and timeout.
    3232     */
    33     @Rule
     33    @RegisterExtension
    3434    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3535    public JOSMTestRules test = new JOSMTestRules();
     
    4040     * Forces the timezone.
    4141     */
    42     @Before
     42    @BeforeEach
    4343    public void setUp() {
    4444        iso8601.setTimeZone(DateUtils.UTC);
     
    5757     */
    5858    @Test
    59     public void testReader() throws Exception {
     59    void testReader() throws Exception {
    6060        RtkLibPosReader in = read("nodist/data/rtklib_example.pos");
    6161        assertEquals(137, in.getNumberOfCoordinates());
     
    8383     */
    8484    @Test
    85     public void testReader2() throws Exception {
     85    void testReader2() throws Exception {
    8686        RtkLibPosReader in = read("nodist/data/rtklib_example2.pos");
    8787        assertEquals(6, in.getNumberOfCoordinates());
Note: See TracChangeset for help on using the changeset viewer.