Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/data/gpx
- Timestamp:
- 2020-10-28T20:41:00+01:00 (4 years ago)
- 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 2 2 package org.openstreetmap.josm.data.gpx; 3 3 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; 4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertNotNull; 7 import static org.junit.jupiter.api.Assertions.assertNull; 8 import static org.junit.jupiter.api.Assertions.assertThrows; 9 import static org.junit.jupiter.api.Assertions.assertTrue; 9 10 10 11 import java.io.IOException; … … 18 19 import java.util.stream.Stream; 19 20 20 import org.junit. Before;21 import org.junit. Rule;22 import org.junit. Test;21 import org.junit.jupiter.api.BeforeEach; 22 import org.junit.jupiter.api.Test; 23 import org.junit.jupiter.api.extension.RegisterExtension; 23 24 import org.openstreetmap.josm.TestUtils; 24 25 import org.openstreetmap.josm.data.Bounds; … … 41 42 * Unit tests for class {@link GpxData}. 42 43 */ 43 publicclass GpxDataTest {44 class GpxDataTest { 44 45 45 46 /** 46 47 * Setup test. 47 48 */ 48 @R ule49 @RegisterExtension 49 50 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 50 51 public JOSMTestRules test = new JOSMTestRules().projection(); … … 55 56 * Set up empty test data 56 57 */ 57 @Before 58 @BeforeEach 58 59 public void setUp() { 59 60 data = new GpxData(); … … 64 65 */ 65 66 @Test 66 publicvoid testMergeFrom() {67 void testMergeFrom() { 67 68 GpxTrack track = singleWaypointGpxTrack(); 68 69 GpxRoute route = singleWaypointRoute(); … … 93 94 */ 94 95 @Test 95 publicvoid testMergeFromFiles() throws Exception {96 void testMergeFromFiles() throws Exception { 96 97 testMerge(false, false, "Merged-all"); // regular merging 97 98 testMerge(true, false, "Merged-cut"); // cut overlapping tracks, but do not connect them … … 106 107 own.put(GpxConstants.META_BOUNDS, null); 107 108 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!"); 109 110 } 110 111 … … 117 118 */ 118 119 @Test 119 publicvoid testTracks() {120 void testTracks() { 120 121 assertEquals(0, data.getTracks().size()); 121 122 … … 138 139 * Test method for {@link GpxData#addTrack(IGpxTrack)}. 139 140 */ 140 @Test (expected = IllegalArgumentException.class)141 publicvoid testAddTrackFails() {141 @Test 142 void testAddTrackFails() { 142 143 GpxTrack track1 = emptyGpxTrack(); 143 144 data.addTrack(track1); 144 data.addTrack(track1); 145 assertThrows(IllegalArgumentException.class, () -> data.addTrack(track1)); 145 146 } 146 147 … … 148 149 * Test method for {@link GpxData#removeTrack(IGpxTrack)}. 149 150 */ 150 @Test (expected = IllegalArgumentException.class)151 publicvoid testRemoveTrackFails() {151 @Test 152 void testRemoveTrackFails() { 152 153 GpxTrack track1 = emptyGpxTrack(); 153 154 data.addTrack(track1); 154 155 data.removeTrack(track1); 155 data.removeTrack(track1); 156 assertThrows(IllegalArgumentException.class, () -> data.removeTrack(track1)); 156 157 } 157 158 … … 160 161 */ 161 162 @Test 162 publicvoid testRoutes() {163 void testRoutes() { 163 164 assertEquals(0, data.getTracks().size()); 164 165 … … 182 183 * Test method for {@link GpxData#addRoute(GpxRoute)}. 183 184 */ 184 @Test (expected = IllegalArgumentException.class)185 publicvoid testAddRouteFails() {185 @Test 186 void testAddRouteFails() { 186 187 GpxRoute route1 = new GpxRoute(); 187 188 data.addRoute(route1); 188 data.addRoute(route1); 189 assertThrows(IllegalArgumentException.class, () -> data.addRoute(route1)); 189 190 } 190 191 … … 192 193 * Test method for {@link GpxData#removeRoute(GpxRoute)}. 193 194 */ 194 @Test (expected = IllegalArgumentException.class)195 publicvoid testRemoveRouteFails() {195 @Test 196 void testRemoveRouteFails() { 196 197 GpxRoute route1 = new GpxRoute(); 197 198 data.addRoute(route1); 198 199 data.removeRoute(route1); 199 data.removeRoute(route1); 200 assertThrows(IllegalArgumentException.class, () -> data.removeRoute(route1)); 200 201 } 201 202 … … 204 205 */ 205 206 @Test 206 publicvoid testWaypoints() {207 void testWaypoints() { 207 208 assertEquals(0, data.getTracks().size()); 208 209 … … 225 226 * Test method for {@link GpxData#addWaypoint(WayPoint)}. 226 227 */ 227 @Test (expected = IllegalArgumentException.class)228 publicvoid testAddWaypointFails() {228 @Test 229 void testAddWaypointFails() { 229 230 WayPoint waypoint1 = new WayPoint(LatLon.ZERO); 230 231 data.addWaypoint(waypoint1); 231 data.addWaypoint(waypoint1); 232 assertThrows(IllegalArgumentException.class, () -> data.addWaypoint(waypoint1)); 232 233 } 233 234 … … 235 236 * Test method for {@link GpxData#removeWaypoint(WayPoint)}. 236 237 */ 237 @Test (expected = IllegalArgumentException.class)238 publicvoid testRemoveWaypointFails() {238 @Test 239 void testRemoveWaypointFails() { 239 240 WayPoint waypoint1 = new WayPoint(LatLon.ZERO); 240 241 data.addWaypoint(waypoint1); 241 242 data.removeWaypoint(waypoint1); 242 data.removeWaypoint(waypoint1); 243 assertThrows(IllegalArgumentException.class, () -> data.removeWaypoint(waypoint1)); 243 244 } 244 245 … … 247 248 */ 248 249 @Test 249 publicvoid testHasTrackPoints() {250 void testHasTrackPoints() { 250 251 assertFalse(data.hasTrackPoints()); 251 252 GpxTrack track1 = emptyGpxTrack(); … … 261 262 */ 262 263 @Test 263 publicvoid testGetTrackPoints() {264 void testGetTrackPoints() { 264 265 assertEquals(0, data.getTrackPoints().count()); 265 266 GpxTrack track1 = singleWaypointGpxTrack(); … … 275 276 */ 276 277 @Test 277 publicvoid testHasRoutePoints() {278 void testHasRoutePoints() { 278 279 279 280 } … … 283 284 */ 284 285 @Test 285 publicvoid testIsEmpty() {286 void testIsEmpty() { 286 287 GpxTrack track1 = singleWaypointGpxTrack(); 287 288 WayPoint waypoint = new WayPoint(LatLon.ZERO); … … 310 311 */ 311 312 @Test 312 publicvoid testLength() {313 void testLength() { 313 314 GpxTrack track1 = waypointGpxTrack( 314 315 new WayPoint(new LatLon(0, 0)), … … 328 329 */ 329 330 @Test 330 publicvoid testGetMinMaxTimeForAllTracks() {331 void testGetMinMaxTimeForAllTracks() { 331 332 assertEquals(0, data.getMinMaxTimeForAllTracks().length); 332 333 … … 352 353 */ 353 354 @Test 354 publicvoid testNearestPointOnTrack() {355 void testNearestPointOnTrack() { 355 356 List<WayPoint> points = Stream 356 357 .of(new EastNorth(10, 10), new EastNorth(10, 0), new EastNorth(-1, 0)) … … 378 379 */ 379 380 @Test 380 publicvoid testGetDataSources() {381 void testGetDataSources() { 381 382 DataSource ds = new DataSource(new Bounds(0, 0, 1, 1), "test"); 382 383 data.dataSources.add(ds); … … 388 389 */ 389 390 @Test 390 publicvoid testGetDataSourceArea() {391 void testGetDataSourceArea() { 391 392 DataSource ds = new DataSource(new Bounds(0, 0, 1, 1), "test"); 392 393 data.dataSources.add(ds); … … 400 401 */ 401 402 @Test 402 publicvoid testGetDataSourceBounds() {403 void testGetDataSourceBounds() { 403 404 Bounds bounds = new Bounds(0, 0, 1, 1); 404 405 DataSource ds = new DataSource(bounds, "test"); … … 413 414 */ 414 415 @Test 415 publicvoid testChangeListener() {416 void testChangeListener() { 416 417 TestChangeListener cl1 = new TestChangeListener(); 417 418 TestChangeListener cl2 = new TestChangeListener(); … … 474 475 */ 475 476 @Test 476 publicvoid testEqualsContract() {477 void testEqualsContract() { 477 478 TestUtils.assumeWorkingEqualsVerifier(); 478 479 GpxExtensionCollection col = new GpxExtensionCollection(); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxExtensionTest.java
r15629 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 4 import org.junit. Rule;5 import org.junit.Test; 4 import org.junit.jupiter.api.extension.RegisterExtension; 5 import org.junit.jupiter.api.Test; 6 6 import org.openstreetmap.josm.TestUtils; 7 7 import org.openstreetmap.josm.gui.layer.gpx.ConvertToDataLayerActionTest; … … 17 17 * Unit tests for class {@link GpxExtension} 18 18 */ 19 publicclass GpxExtensionTest {19 class GpxExtensionTest { 20 20 21 21 /** 22 22 * Setup test. 23 23 */ 24 @R ule24 @RegisterExtension 25 25 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 26 26 public JOSMTestRules test = new JOSMTestRules(); … … 33 33 */ 34 34 @Test 35 publicvoid testEqualsContract() {35 void testEqualsContract() { 36 36 TestUtils.assumeWorkingEqualsVerifier(); 37 37 GpxExtensionCollection col = new GpxExtensionCollection(); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxImageCorrelationTest.java
r15431 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 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;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertNull; 7 import static org.junit.jupiter.api.Assertions.assertTrue; 8 8 9 9 import java.util.Arrays; 10 10 import java.util.List; 11 11 12 import org.junit. BeforeClass;13 import org.junit. Rule;14 import org.junit. Test;12 import org.junit.jupiter.api.BeforeAll; 13 import org.junit.jupiter.api.Test; 14 import org.junit.jupiter.api.extension.RegisterExtension; 15 15 import org.openstreetmap.josm.TestUtils; 16 16 import org.openstreetmap.josm.data.coor.CachedLatLon; … … 28 28 * Unit tests of {@link GpxImageCorrelation} class. 29 29 */ 30 publicclass GpxImageCorrelationTest {30 class GpxImageCorrelationTest { 31 31 32 32 /** 33 33 * Setup test. 34 34 */ 35 @R ule35 @RegisterExtension 36 36 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 37 37 public JOSMTestRules test = new JOSMTestRules(); … … 40 40 * Setup test. 41 41 */ 42 @Before Class42 @BeforeAll 43 43 public static void setUp() { 44 44 DateUtilsTest.setTimeZone(DateUtils.UTC); … … 50 50 */ 51 51 @Test 52 publicvoid testMatchGpxTrack() throws Exception {52 void testMatchGpxTrack() throws Exception { 53 53 IPreferences s = Config.getPref(); 54 54 final GpxData gpx = GpxReaderTest.parseGpxData(TestUtils.getTestDataRoot() + "tracks/tracks.gpx"); … … 274 274 */ 275 275 @Test 276 publicvoid testGetElevation() {276 void testGetElevation() { 277 277 assertNull(GpxImageCorrelation.getElevation(null)); 278 278 WayPoint wp = new WayPoint(LatLon.ZERO); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxImageEntryTest.java
r14209 r17275 4 4 import java.io.File; 5 5 6 import org.junit. Rule;7 import org.junit.Test; 6 import org.junit.jupiter.api.extension.RegisterExtension; 7 import org.junit.jupiter.api.Test; 8 8 import org.openstreetmap.josm.TestUtils; 9 9 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 16 16 * Unit tests of {@link GpxImageEntry} class. 17 17 */ 18 publicclass GpxImageEntryTest {18 class GpxImageEntryTest { 19 19 20 20 /** 21 21 * Setup test. 22 22 */ 23 @R ule23 @RegisterExtension 24 24 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 25 25 public JOSMTestRules test = new JOSMTestRules(); … … 29 29 */ 30 30 @Test 31 publicvoid testEqualsContract() {31 void testEqualsContract() { 32 32 TestUtils.assumeWorkingEqualsVerifier(); 33 33 EqualsVerifier.forClass(GpxImageEntry.class).usingGetClass() -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxOffsetTest.java
r14205 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 6 import java.text.ParseException; 7 7 8 import org.junit. BeforeClass;9 import org.junit. Rule;10 import org.junit. Test;8 import org.junit.jupiter.api.BeforeAll; 9 import org.junit.jupiter.api.Test; 10 import org.junit.jupiter.api.extension.RegisterExtension; 11 11 import org.openstreetmap.josm.testutils.JOSMTestRules; 12 12 import org.openstreetmap.josm.tools.date.DateUtils; … … 18 18 * Unit tests of {@link GpxTimeOffset} class. 19 19 */ 20 publicclass GpxOffsetTest {20 class GpxOffsetTest { 21 21 22 22 /** 23 23 * Setup test. 24 24 */ 25 @R ule25 @RegisterExtension 26 26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 27 27 public JOSMTestRules test = new JOSMTestRules(); … … 30 30 * Setup test. 31 31 */ 32 @Before Class32 @BeforeAll 33 33 public static void setUp() { 34 34 DateUtilsTest.setTimeZone(DateUtils.UTC); … … 39 39 */ 40 40 @Test 41 publicvoid testFormatOffset() {41 void testFormatOffset() { 42 42 assertEquals("0", GpxTimeOffset.seconds(0).formatOffset()); 43 43 assertEquals("123", GpxTimeOffset.seconds(123).formatOffset()); … … 55 55 */ 56 56 @Test 57 publicvoid testParseOffest() throws ParseException {57 void testParseOffest() throws ParseException { 58 58 assertEquals(0, GpxTimeOffset.parseOffset("0").getSeconds()); 59 59 assertEquals(4242L, GpxTimeOffset.parseOffset("4242").getSeconds()); … … 69 69 */ 70 70 @Test 71 publicvoid testSplitOutTimezone() {71 void testSplitOutTimezone() { 72 72 assertEquals("+1:00", GpxTimeOffset.seconds(3602).splitOutTimezone().a.formatTimezone()); 73 73 assertEquals("2", GpxTimeOffset.seconds(3602).splitOutTimezone().b.formatOffset()); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxRouteTest.java
r15496 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 4 import org.junit. Rule;5 import org.junit.Test; 4 import org.junit.jupiter.api.extension.RegisterExtension; 5 import org.junit.jupiter.api.Test; 6 6 import org.openstreetmap.josm.TestUtils; 7 7 import org.openstreetmap.josm.data.coor.LatLon; … … 15 15 * Unit tests for class {@link GpxRoute}. 16 16 */ 17 publicclass GpxRouteTest {17 class GpxRouteTest { 18 18 19 19 /** 20 20 * Setup test. 21 21 */ 22 @R ule22 @RegisterExtension 23 23 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 24 24 public JOSMTestRules test = new JOSMTestRules(); … … 28 28 */ 29 29 @Test 30 publicvoid testEqualsContract() {30 void testEqualsContract() { 31 31 TestUtils.assumeWorkingEqualsVerifier(); 32 32 GpxExtensionCollection col = new GpxExtensionCollection(); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxTimezoneTest.java
r14205 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 6 import java.text.ParseException; 7 7 8 import org.junit. BeforeClass;9 import org.junit. Rule;10 import org.junit. Test;8 import org.junit.jupiter.api.BeforeAll; 9 import org.junit.jupiter.api.Test; 10 import org.junit.jupiter.api.extension.RegisterExtension; 11 11 import org.openstreetmap.josm.testutils.JOSMTestRules; 12 12 import org.openstreetmap.josm.tools.date.DateUtils; … … 18 18 * Unit tests of {@link GpxTimezone} class. 19 19 */ 20 publicclass GpxTimezoneTest {20 class GpxTimezoneTest { 21 21 22 22 /** 23 23 * Setup test. 24 24 */ 25 @R ule25 @RegisterExtension 26 26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 27 27 public JOSMTestRules test = new JOSMTestRules(); … … 30 30 * Setup test. 31 31 */ 32 @Before Class32 @BeforeAll 33 33 public static void setUp() { 34 34 DateUtilsTest.setTimeZone(DateUtils.UTC); … … 39 39 */ 40 40 @Test 41 publicvoid testFormatTimezone() {41 void testFormatTimezone() { 42 42 assertEquals("+1:00", new GpxTimezone(1).formatTimezone()); 43 43 assertEquals("+6:30", new GpxTimezone(6.5).formatTimezone()); … … 52 52 */ 53 53 @Test 54 publicvoid testParseTimezone() throws ParseException {54 void testParseTimezone() throws ParseException { 55 55 assertEquals(1, GpxTimezone.parseTimezone("+01:00").getHours(), 1e-3); 56 56 assertEquals(1, GpxTimezone.parseTimezone("+1:00").getHours(), 1e-3); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxTrackSegmentTest.java
r15496 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 4 import org.junit. Rule;5 import org.junit.Test; 4 import org.junit.jupiter.api.extension.RegisterExtension; 5 import org.junit.jupiter.api.Test; 6 6 import org.openstreetmap.josm.TestUtils; 7 7 import org.openstreetmap.josm.data.coor.LatLon; … … 15 15 * Unit tests for class {@link GpxTrackSegment}. 16 16 */ 17 publicclass GpxTrackSegmentTest {17 class GpxTrackSegmentTest { 18 18 19 19 /** 20 20 * Setup test. 21 21 */ 22 @R ule22 @RegisterExtension 23 23 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 24 24 public JOSMTestRules test = new JOSMTestRules(); … … 28 28 */ 29 29 @Test 30 publicvoid testEqualsContract() {30 void testEqualsContract() { 31 31 TestUtils.assumeWorkingEqualsVerifier(); 32 32 GpxExtensionCollection col = new GpxExtensionCollection(); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxTrackTest.java
r15560 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertNull;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertNull; 6 6 7 7 import java.awt.Color; … … 9 9 import java.util.HashMap; 10 10 11 import org.junit. Rule;12 import org.junit.Test; 11 import org.junit.jupiter.api.extension.RegisterExtension; 12 import org.junit.jupiter.api.Test; 13 13 import org.openstreetmap.josm.TestUtils; 14 14 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 22 22 * Unit tests for class {@link GpxTrack}. 23 23 */ 24 publicclass GpxTrackTest {24 class GpxTrackTest { 25 25 26 26 /** 27 27 * Setup test. 28 28 */ 29 @R ule29 @RegisterExtension 30 30 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 31 31 public JOSMTestRules test = new JOSMTestRules(); … … 35 35 */ 36 36 @Test 37 publicvoid testColors() {37 void testColors() { 38 38 GpxTrack trk = new GpxTrack(new ArrayList<IGpxTrackSegment>(), new HashMap<>()); 39 39 GpxExtensionCollection ext = trk.getExtensions(); … … 61 61 */ 62 62 @Test 63 publicvoid testEqualsContract() {63 void testEqualsContract() { 64 64 TestUtils.assumeWorkingEqualsVerifier(); 65 65 GpxExtensionCollection col = new GpxExtensionCollection(); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/WayPointTest.java
r15496 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 4 import org.junit. Rule;5 import org.junit.Test; 4 import org.junit.jupiter.api.extension.RegisterExtension; 5 import org.junit.jupiter.api.Test; 6 6 import org.openstreetmap.josm.TestUtils; 7 7 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 14 14 * Unit tests for class {@link WayPoint}. 15 15 */ 16 publicclass WayPointTest {16 class WayPointTest { 17 17 18 18 /** 19 19 * Setup test. 20 20 */ 21 @R ule21 @RegisterExtension 22 22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 23 23 public JOSMTestRules test = new JOSMTestRules(); … … 27 27 */ 28 28 @Test 29 publicvoid testEqualsContract() {29 void testEqualsContract() { 30 30 TestUtils.assumeWorkingEqualsVerifier(); 31 31 GpxExtensionCollection col = new GpxExtensionCollection(); -
trunk/test/unit/org/openstreetmap/josm/data/gpx/WithAttributesTest.java
r15496 r17275 2 2 package org.openstreetmap.josm.data.gpx; 3 3 4 import org.junit. Rule;5 import org.junit.Test; 4 import org.junit.jupiter.api.extension.RegisterExtension; 5 import org.junit.jupiter.api.Test; 6 6 import org.openstreetmap.josm.TestUtils; 7 7 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 14 14 * Unit tests for class {@link WithAttributes}. 15 15 */ 16 publicclass WithAttributesTest {16 class WithAttributesTest { 17 17 18 18 /** 19 19 * Setup test. 20 20 */ 21 @R ule21 @RegisterExtension 22 22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 23 23 public JOSMTestRules test = new JOSMTestRules(); … … 27 27 */ 28 28 @Test 29 publicvoid testEqualsContract() {29 void testEqualsContract() { 30 30 TestUtils.assumeWorkingEqualsVerifier(); 31 31 GpxExtensionCollection col = new GpxExtensionCollection();
Note:
See TracChangeset
for help on using the changeset viewer.