Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (4 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

Location:
trunk/test/unit/org/openstreetmap/josm/data/gpx
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java

    r15502 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertFalse;
    6 import static org.junit.Assert.assertNotNull;
    7 import static org.junit.Assert.assertNull;
    8 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertFalse;
     6import static org.junit.jupiter.api.Assertions.assertNotNull;
     7import static org.junit.jupiter.api.Assertions.assertNull;
     8import static org.junit.jupiter.api.Assertions.assertThrows;
     9import static org.junit.jupiter.api.Assertions.assertTrue;
    910
    1011import java.io.IOException;
     
    1819import java.util.stream.Stream;
    1920
    20 import org.junit.Before;
    21 import org.junit.Rule;
    22 import org.junit.Test;
     21import org.junit.jupiter.api.BeforeEach;
     22import org.junit.jupiter.api.Test;
     23import org.junit.jupiter.api.extension.RegisterExtension;
    2324import org.openstreetmap.josm.TestUtils;
    2425import org.openstreetmap.josm.data.Bounds;
     
    4142 * Unit tests for class {@link GpxData}.
    4243 */
    43 public class GpxDataTest {
     44class GpxDataTest {
    4445
    4546    /**
    4647     * Setup test.
    4748     */
    48     @Rule
     49    @RegisterExtension
    4950    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    5051    public JOSMTestRules test = new JOSMTestRules().projection();
     
    5556     * Set up empty test data
    5657     */
    57     @Before
     58    @BeforeEach
    5859    public void setUp() {
    5960        data = new GpxData();
     
    6465     */
    6566    @Test
    66     public void testMergeFrom() {
     67    void testMergeFrom() {
    6768        GpxTrack track = singleWaypointGpxTrack();
    6869        GpxRoute route = singleWaypointRoute();
     
    9394     */
    9495    @Test
    95     public void testMergeFromFiles() throws Exception {
     96    void testMergeFromFiles() throws Exception {
    9697        testMerge(false, false, "Merged-all"); // regular merging
    9798        testMerge(true, false, "Merged-cut"); // cut overlapping tracks, but do not connect them
     
    106107        own.put(GpxConstants.META_BOUNDS, null);
    107108        expected.put(GpxConstants.META_BOUNDS, null); //they are only updated by GpxWriter
    108         assertEquals(exp + " didn't match!", expected, own);
     109        assertEquals(expected, own, exp + " didn't match!");
    109110    }
    110111
     
    117118     */
    118119    @Test
    119     public void testTracks() {
     120    void testTracks() {
    120121        assertEquals(0, data.getTracks().size());
    121122
     
    138139     * Test method for {@link GpxData#addTrack(IGpxTrack)}.
    139140     */
    140     @Test(expected = IllegalArgumentException.class)
    141     public void testAddTrackFails() {
     141    @Test
     142    void testAddTrackFails() {
    142143        GpxTrack track1 = emptyGpxTrack();
    143144        data.addTrack(track1);
    144         data.addTrack(track1);
     145        assertThrows(IllegalArgumentException.class, () -> data.addTrack(track1));
    145146    }
    146147
     
    148149     * Test method for {@link GpxData#removeTrack(IGpxTrack)}.
    149150     */
    150     @Test(expected = IllegalArgumentException.class)
    151     public void testRemoveTrackFails() {
     151    @Test
     152    void testRemoveTrackFails() {
    152153        GpxTrack track1 = emptyGpxTrack();
    153154        data.addTrack(track1);
    154155        data.removeTrack(track1);
    155         data.removeTrack(track1);
     156        assertThrows(IllegalArgumentException.class, () -> data.removeTrack(track1));
    156157    }
    157158
     
    160161     */
    161162    @Test
    162     public void testRoutes() {
     163    void testRoutes() {
    163164        assertEquals(0, data.getTracks().size());
    164165
     
    182183     * Test method for {@link GpxData#addRoute(GpxRoute)}.
    183184     */
    184     @Test(expected = IllegalArgumentException.class)
    185     public void testAddRouteFails() {
     185    @Test
     186    void testAddRouteFails() {
    186187        GpxRoute route1 = new GpxRoute();
    187188        data.addRoute(route1);
    188         data.addRoute(route1);
     189        assertThrows(IllegalArgumentException.class, () -> data.addRoute(route1));
    189190    }
    190191
     
    192193     * Test method for {@link GpxData#removeRoute(GpxRoute)}.
    193194     */
    194     @Test(expected = IllegalArgumentException.class)
    195     public void testRemoveRouteFails() {
     195    @Test
     196    void testRemoveRouteFails() {
    196197        GpxRoute route1 = new GpxRoute();
    197198        data.addRoute(route1);
    198199        data.removeRoute(route1);
    199         data.removeRoute(route1);
     200        assertThrows(IllegalArgumentException.class, () -> data.removeRoute(route1));
    200201    }
    201202
     
    204205     */
    205206    @Test
    206     public void testWaypoints() {
     207    void testWaypoints() {
    207208        assertEquals(0, data.getTracks().size());
    208209
     
    225226     * Test method for {@link GpxData#addWaypoint(WayPoint)}.
    226227     */
    227     @Test(expected = IllegalArgumentException.class)
    228     public void testAddWaypointFails() {
     228    @Test
     229    void testAddWaypointFails() {
    229230        WayPoint waypoint1 = new WayPoint(LatLon.ZERO);
    230231        data.addWaypoint(waypoint1);
    231         data.addWaypoint(waypoint1);
     232        assertThrows(IllegalArgumentException.class, () -> data.addWaypoint(waypoint1));
    232233    }
    233234
     
    235236     * Test method for {@link GpxData#removeWaypoint(WayPoint)}.
    236237     */
    237     @Test(expected = IllegalArgumentException.class)
    238     public void testRemoveWaypointFails() {
     238    @Test
     239    void testRemoveWaypointFails() {
    239240        WayPoint waypoint1 = new WayPoint(LatLon.ZERO);
    240241        data.addWaypoint(waypoint1);
    241242        data.removeWaypoint(waypoint1);
    242         data.removeWaypoint(waypoint1);
     243        assertThrows(IllegalArgumentException.class, () -> data.removeWaypoint(waypoint1));
    243244    }
    244245
     
    247248     */
    248249    @Test
    249     public void testHasTrackPoints() {
     250    void testHasTrackPoints() {
    250251        assertFalse(data.hasTrackPoints());
    251252        GpxTrack track1 = emptyGpxTrack();
     
    261262     */
    262263    @Test
    263     public void testGetTrackPoints() {
     264    void testGetTrackPoints() {
    264265        assertEquals(0, data.getTrackPoints().count());
    265266        GpxTrack track1 = singleWaypointGpxTrack();
     
    275276     */
    276277    @Test
    277     public void testHasRoutePoints() {
     278    void testHasRoutePoints() {
    278279
    279280    }
     
    283284     */
    284285    @Test
    285     public void testIsEmpty() {
     286    void testIsEmpty() {
    286287        GpxTrack track1 = singleWaypointGpxTrack();
    287288        WayPoint waypoint = new WayPoint(LatLon.ZERO);
     
    310311     */
    311312    @Test
    312     public void testLength() {
     313    void testLength() {
    313314        GpxTrack track1 = waypointGpxTrack(
    314315                new WayPoint(new LatLon(0, 0)),
     
    328329     */
    329330    @Test
    330     public void testGetMinMaxTimeForAllTracks() {
     331    void testGetMinMaxTimeForAllTracks() {
    331332        assertEquals(0, data.getMinMaxTimeForAllTracks().length);
    332333
     
    352353     */
    353354    @Test
    354     public void testNearestPointOnTrack() {
     355    void testNearestPointOnTrack() {
    355356        List<WayPoint> points = Stream
    356357                .of(new EastNorth(10, 10), new EastNorth(10, 0), new EastNorth(-1, 0))
     
    378379     */
    379380    @Test
    380     public void testGetDataSources() {
     381    void testGetDataSources() {
    381382        DataSource ds = new DataSource(new Bounds(0, 0, 1, 1), "test");
    382383        data.dataSources.add(ds);
     
    388389     */
    389390    @Test
    390     public void testGetDataSourceArea() {
     391    void testGetDataSourceArea() {
    391392        DataSource ds = new DataSource(new Bounds(0, 0, 1, 1), "test");
    392393        data.dataSources.add(ds);
     
    400401     */
    401402    @Test
    402     public void testGetDataSourceBounds() {
     403    void testGetDataSourceBounds() {
    403404        Bounds bounds = new Bounds(0, 0, 1, 1);
    404405        DataSource ds = new DataSource(bounds, "test");
     
    413414     */
    414415    @Test
    415     public void testChangeListener() {
     416    void testChangeListener() {
    416417        TestChangeListener cl1 = new TestChangeListener();
    417418        TestChangeListener cl2 = new TestChangeListener();
     
    474475     */
    475476    @Test
    476     public void testEqualsContract() {
     477    void testEqualsContract() {
    477478        TestUtils.assumeWorkingEqualsVerifier();
    478479        GpxExtensionCollection col = new GpxExtensionCollection();
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxExtensionTest.java

    r15629 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.TestUtils;
    77import org.openstreetmap.josm.gui.layer.gpx.ConvertToDataLayerActionTest;
     
    1717 * Unit tests for class {@link GpxExtension}
    1818 */
    19 public class GpxExtensionTest {
     19class GpxExtensionTest {
    2020
    2121    /**
    2222     * Setup test.
    2323     */
    24     @Rule
     24    @RegisterExtension
    2525    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2626    public JOSMTestRules test = new JOSMTestRules();
     
    3333     */
    3434    @Test
    35     public void testEqualsContract() {
     35    void testEqualsContract() {
    3636        TestUtils.assumeWorkingEqualsVerifier();
    3737        GpxExtensionCollection col = new GpxExtensionCollection();
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxImageCorrelationTest.java

    r15431 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertFalse;
    6 import static org.junit.Assert.assertNull;
    7 import static org.junit.Assert.assertTrue;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertFalse;
     6import static org.junit.jupiter.api.Assertions.assertNull;
     7import static org.junit.jupiter.api.Assertions.assertTrue;
    88
    99import java.util.Arrays;
    1010import java.util.List;
    1111
    12 import org.junit.BeforeClass;
    13 import org.junit.Rule;
    14 import org.junit.Test;
     12import org.junit.jupiter.api.BeforeAll;
     13import org.junit.jupiter.api.Test;
     14import org.junit.jupiter.api.extension.RegisterExtension;
    1515import org.openstreetmap.josm.TestUtils;
    1616import org.openstreetmap.josm.data.coor.CachedLatLon;
     
    2828 * Unit tests of {@link GpxImageCorrelation} class.
    2929 */
    30 public class GpxImageCorrelationTest {
     30class GpxImageCorrelationTest {
    3131
    3232    /**
    3333     * Setup test.
    3434     */
    35     @Rule
     35    @RegisterExtension
    3636    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3737    public JOSMTestRules test = new JOSMTestRules();
     
    4040     * Setup test.
    4141     */
    42     @BeforeClass
     42    @BeforeAll
    4343    public static void setUp() {
    4444        DateUtilsTest.setTimeZone(DateUtils.UTC);
     
    5050     */
    5151    @Test
    52     public void testMatchGpxTrack() throws Exception {
     52    void testMatchGpxTrack() throws Exception {
    5353        IPreferences s = Config.getPref();
    5454        final GpxData gpx = GpxReaderTest.parseGpxData(TestUtils.getTestDataRoot() + "tracks/tracks.gpx");
     
    274274     */
    275275    @Test
    276     public void testGetElevation() {
     276    void testGetElevation() {
    277277        assertNull(GpxImageCorrelation.getElevation(null));
    278278        WayPoint wp = new WayPoint(LatLon.ZERO);
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxImageEntryTest.java

    r14209 r17275  
    44import java.io.File;
    55
    6 import org.junit.Rule;
    7 import org.junit.Test;
     6import org.junit.jupiter.api.extension.RegisterExtension;
     7import org.junit.jupiter.api.Test;
    88import org.openstreetmap.josm.TestUtils;
    99import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1616 * Unit tests of {@link GpxImageEntry} class.
    1717 */
    18 public class GpxImageEntryTest {
     18class GpxImageEntryTest {
    1919
    2020    /**
    2121     * Setup test.
    2222     */
    23     @Rule
     23    @RegisterExtension
    2424    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2525    public JOSMTestRules test = new JOSMTestRules();
     
    2929     */
    3030    @Test
    31     public void testEqualsContract() {
     31    void testEqualsContract() {
    3232        TestUtils.assumeWorkingEqualsVerifier();
    3333        EqualsVerifier.forClass(GpxImageEntry.class).usingGetClass()
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxOffsetTest.java

    r14205 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import static org.junit.Assert.assertEquals;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
    55
    66import java.text.ParseException;
    77
    8 import org.junit.BeforeClass;
    9 import org.junit.Rule;
    10 import org.junit.Test;
     8import org.junit.jupiter.api.BeforeAll;
     9import org.junit.jupiter.api.Test;
     10import org.junit.jupiter.api.extension.RegisterExtension;
    1111import org.openstreetmap.josm.testutils.JOSMTestRules;
    1212import org.openstreetmap.josm.tools.date.DateUtils;
     
    1818 * Unit tests of {@link GpxTimeOffset} class.
    1919 */
    20 public class GpxOffsetTest {
     20class GpxOffsetTest {
    2121
    2222    /**
    2323     * Setup test.
    2424     */
    25     @Rule
     25    @RegisterExtension
    2626    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2727    public JOSMTestRules test = new JOSMTestRules();
     
    3030     * Setup test.
    3131     */
    32     @BeforeClass
     32    @BeforeAll
    3333    public static void setUp() {
    3434        DateUtilsTest.setTimeZone(DateUtils.UTC);
     
    3939     */
    4040    @Test
    41     public void testFormatOffset() {
     41    void testFormatOffset() {
    4242        assertEquals("0", GpxTimeOffset.seconds(0).formatOffset());
    4343        assertEquals("123", GpxTimeOffset.seconds(123).formatOffset());
     
    5555     */
    5656    @Test
    57     public void testParseOffest() throws ParseException {
     57    void testParseOffest() throws ParseException {
    5858        assertEquals(0, GpxTimeOffset.parseOffset("0").getSeconds());
    5959        assertEquals(4242L, GpxTimeOffset.parseOffset("4242").getSeconds());
     
    6969     */
    7070    @Test
    71     public void testSplitOutTimezone() {
     71    void testSplitOutTimezone() {
    7272        assertEquals("+1:00", GpxTimeOffset.seconds(3602).splitOutTimezone().a.formatTimezone());
    7373        assertEquals("2", GpxTimeOffset.seconds(3602).splitOutTimezone().b.formatOffset());
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxRouteTest.java

    r15496 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.TestUtils;
    77import org.openstreetmap.josm.data.coor.LatLon;
     
    1515 * Unit tests for class {@link GpxRoute}.
    1616 */
    17 public class GpxRouteTest {
     17class GpxRouteTest {
    1818
    1919    /**
    2020     * Setup test.
    2121     */
    22     @Rule
     22    @RegisterExtension
    2323    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2424    public JOSMTestRules test = new JOSMTestRules();
     
    2828     */
    2929    @Test
    30     public void testEqualsContract() {
     30    void testEqualsContract() {
    3131        TestUtils.assumeWorkingEqualsVerifier();
    3232        GpxExtensionCollection col = new GpxExtensionCollection();
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxTimezoneTest.java

    r14205 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import static org.junit.Assert.assertEquals;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
    55
    66import java.text.ParseException;
    77
    8 import org.junit.BeforeClass;
    9 import org.junit.Rule;
    10 import org.junit.Test;
     8import org.junit.jupiter.api.BeforeAll;
     9import org.junit.jupiter.api.Test;
     10import org.junit.jupiter.api.extension.RegisterExtension;
    1111import org.openstreetmap.josm.testutils.JOSMTestRules;
    1212import org.openstreetmap.josm.tools.date.DateUtils;
     
    1818 * Unit tests of {@link GpxTimezone} class.
    1919 */
    20 public class GpxTimezoneTest {
     20class GpxTimezoneTest {
    2121
    2222    /**
    2323     * Setup test.
    2424     */
    25     @Rule
     25    @RegisterExtension
    2626    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2727    public JOSMTestRules test = new JOSMTestRules();
     
    3030     * Setup test.
    3131     */
    32     @BeforeClass
     32    @BeforeAll
    3333    public static void setUp() {
    3434        DateUtilsTest.setTimeZone(DateUtils.UTC);
     
    3939     */
    4040    @Test
    41     public void testFormatTimezone() {
     41    void testFormatTimezone() {
    4242        assertEquals("+1:00", new GpxTimezone(1).formatTimezone());
    4343        assertEquals("+6:30", new GpxTimezone(6.5).formatTimezone());
     
    5252     */
    5353    @Test
    54     public void testParseTimezone() throws ParseException {
     54    void testParseTimezone() throws ParseException {
    5555        assertEquals(1, GpxTimezone.parseTimezone("+01:00").getHours(), 1e-3);
    5656        assertEquals(1, GpxTimezone.parseTimezone("+1:00").getHours(), 1e-3);
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxTrackSegmentTest.java

    r15496 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.TestUtils;
    77import org.openstreetmap.josm.data.coor.LatLon;
     
    1515 * Unit tests for class {@link GpxTrackSegment}.
    1616 */
    17 public class GpxTrackSegmentTest {
     17class GpxTrackSegmentTest {
    1818
    1919    /**
    2020     * Setup test.
    2121     */
    22     @Rule
     22    @RegisterExtension
    2323    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2424    public JOSMTestRules test = new JOSMTestRules();
     
    2828     */
    2929    @Test
    30     public void testEqualsContract() {
     30    void testEqualsContract() {
    3131        TestUtils.assumeWorkingEqualsVerifier();
    3232        GpxExtensionCollection col = new GpxExtensionCollection();
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxTrackTest.java

    r15560 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import static org.junit.Assert.assertEquals;
    5 import static org.junit.Assert.assertNull;
     4import static org.junit.jupiter.api.Assertions.assertEquals;
     5import static org.junit.jupiter.api.Assertions.assertNull;
    66
    77import java.awt.Color;
     
    99import java.util.HashMap;
    1010
    11 import org.junit.Rule;
    12 import org.junit.Test;
     11import org.junit.jupiter.api.extension.RegisterExtension;
     12import org.junit.jupiter.api.Test;
    1313import org.openstreetmap.josm.TestUtils;
    1414import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    2222 * Unit tests for class {@link GpxTrack}.
    2323 */
    24 public class GpxTrackTest {
     24class GpxTrackTest {
    2525
    2626    /**
    2727     * Setup test.
    2828     */
    29     @Rule
     29    @RegisterExtension
    3030    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    3131    public JOSMTestRules test = new JOSMTestRules();
     
    3535     */
    3636    @Test
    37     public void testColors() {
     37    void testColors() {
    3838        GpxTrack trk = new GpxTrack(new ArrayList<IGpxTrackSegment>(), new HashMap<>());
    3939        GpxExtensionCollection ext = trk.getExtensions();
     
    6161     */
    6262    @Test
    63     public void testEqualsContract() {
     63    void testEqualsContract() {
    6464        TestUtils.assumeWorkingEqualsVerifier();
    6565        GpxExtensionCollection col = new GpxExtensionCollection();
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/WayPointTest.java

    r15496 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.TestUtils;
    77import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1414 * Unit tests for class {@link WayPoint}.
    1515 */
    16 public class WayPointTest {
     16class WayPointTest {
    1717
    1818    /**
    1919     * Setup test.
    2020     */
    21     @Rule
     21    @RegisterExtension
    2222    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2323    public JOSMTestRules test = new JOSMTestRules();
     
    2727     */
    2828    @Test
    29     public void testEqualsContract() {
     29    void testEqualsContract() {
    3030        TestUtils.assumeWorkingEqualsVerifier();
    3131        GpxExtensionCollection col = new GpxExtensionCollection();
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/WithAttributesTest.java

    r15496 r17275  
    22package org.openstreetmap.josm.data.gpx;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.TestUtils;
    77import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    1414 * Unit tests for class {@link WithAttributes}.
    1515 */
    16 public class WithAttributesTest {
     16class WithAttributesTest {
    1717
    1818    /**
    1919     * Setup test.
    2020     */
    21     @Rule
     21    @RegisterExtension
    2222    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2323    public JOSMTestRules test = new JOSMTestRules();
     
    2727     */
    2828    @Test
    29     public void testEqualsContract() {
     29    void testEqualsContract() {
    3030        TestUtils.assumeWorkingEqualsVerifier();
    3131        GpxExtensionCollection col = new GpxExtensionCollection();
Note: See TracChangeset for help on using the changeset viewer.