Changeset 19502 in josm for trunk/test/unit
- Timestamp:
- 2026-02-10T23:29:03+01:00 (2 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java
r19050 r19502 16 16 import java.util.Collections; 17 17 import java.util.List; 18 import java.util.HashMap; 19 import java.util.Map; 18 20 import java.util.stream.Collectors; 19 21 import java.util.stream.Stream; … … 494 496 GpxExtensionCollection col = new GpxExtensionCollection(); 495 497 col.add("josm", "from-server", "true"); 498 Collection<Collection<WayPoint>> trackSegs1 = new ArrayList<Collection<WayPoint>>(); 499 Collection<Collection<WayPoint>> trackSegs2 = new ArrayList<Collection<WayPoint>>(); 500 Collection<WayPoint> wps = new ArrayList<WayPoint>(); 501 wps.add(new WayPoint(LatLon.SOUTH_POLE)); 502 trackSegs2.add(wps); 503 Map<String, Object> attributes1 = new HashMap<String, Object>(); 504 Map<String, Object> attributes2 = new HashMap<String, Object>(); 505 attributes2.put("test", "test"); 496 506 EqualsVerifier.forClass(GpxData.class).usingGetClass() 497 507 .suppress(Warning.NONFINAL_FIELDS) … … 501 511 .withPrefabValues(ListenerList.class, ListenerList.create(), ListenerList.create()) 502 512 .withPrefabValues(GpxExtensionCollection.class, new GpxExtensionCollection(), col) 513 .withPrefabValues(IGpxTrack.class, new GpxTrack(trackSegs1, attributes1), new GpxTrack(trackSegs2, attributes2)) 503 514 .verify(); 504 515 }
Note:
See TracChangeset
for help on using the changeset viewer.
