Changeset 19502 in josm for trunk/test/unit


Ignore:
Timestamp:
2026-02-10T23:29:03+01:00 (2 days ago)
Author:
stoecker
Message:

fix test

File:
1 edited

Legend:

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

    r19050 r19502  
    1616import java.util.Collections;
    1717import java.util.List;
     18import java.util.HashMap;
     19import java.util.Map;
    1820import java.util.stream.Collectors;
    1921import java.util.stream.Stream;
     
    494496        GpxExtensionCollection col = new GpxExtensionCollection();
    495497        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");
    496506        EqualsVerifier.forClass(GpxData.class).usingGetClass()
    497507            .suppress(Warning.NONFINAL_FIELDS)
     
    501511            .withPrefabValues(ListenerList.class, ListenerList.create(), ListenerList.create())
    502512            .withPrefabValues(GpxExtensionCollection.class, new GpxExtensionCollection(), col)
     513            .withPrefabValues(IGpxTrack.class, new GpxTrack(trackSegs1, attributes1), new GpxTrack(trackSegs2, attributes2))
    503514            .verify();
    504515    }
Note: See TracChangeset for help on using the changeset viewer.