Changeset 19502 in josm


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

fix test

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ivy.xml

    r19501 r19502  
    4141        <dependency conf="sources->sources" org="org.eclipse.parsson" name="parsson" rev="1.1.7"/>
    4242        <dependency conf="sources->sources" org="org.apache.commons" name="commons-jcs3-core" rev="3.2.1"/>
    43         <dependency conf="sources->sources" org="org.apache.commons" name="commons-compress" rev="1.27.1"/>
     43        <dependency conf="sources->sources" org="org.apache.commons" name="commons-compress" rev="1.28.0"/>
    4444        <dependency conf="sources->sources" org="jakarta.annotation" name="jakarta.annotation-api" rev="2.1.1" />
    45         <dependency conf="sources->sources" org="org.tukaani" name="xz" rev="1.10"/>
     45        <dependency conf="sources->sources" org="org.tukaani" name="xz" rev="1.11"/>
    4646        <dependency conf="sources->sources" org="com.adobe.xmp" name="xmpcore" rev="6.1.11"/>
    4747        <dependency conf="sources->sources" org="com.drewnoakes" name="metadata-extractor" rev="2.19.0" transitive="false"/>
    4848        <dependency conf="sources->sources" org="com.formdev" name="svgSalamander" rev="1.1.4"/>
    49         <dependency conf="sources->sources" org="ch.poole" name="OpeningHoursParser" rev="0.28.2"/>
     49        <dependency conf="sources->sources" org="ch.poole" name="OpeningHoursParser" rev="0.29.0"/>
    5050        <dependency conf="sources->default" org="org.webjars.npm" name="tag2link" rev="2025.11.21"/><!-- sources->default sic! (tag2link-sources.jar is empty, see #19335) -->
    5151        <!-- commonslang->default -->
  • trunk/nodist/pom.xml

    r19448 r19502  
    254254                <groupId>org.junit</groupId>
    255255                <artifactId>junit-bom</artifactId>
    256                 <version>5.11.4</version>
     256                <version>5.14.2</version>
    257257                <type>pom</type>
    258258                <scope>import</scope>
     
    285285                <groupId>org.apache.commons</groupId>
    286286                <artifactId>commons-compress</artifactId>
    287                 <version>1.27.1</version>
     287                <version>1.28.0</version>
    288288                <scope>provided</scope>
    289289            </dependency>
     
    297297                <groupId>org.tukaani</groupId>
    298298                <artifactId>xz</artifactId>
    299                 <version>1.10</version>
     299                <version>1.11</version>
    300300                <scope>provided</scope>
    301301            </dependency>
     
    321321                <groupId>ch.poole</groupId>
    322322                <artifactId>OpeningHoursParser</artifactId>
    323                 <version>0.28.2</version>
     323                <version>0.29.0</version>
    324324                <scope>provided</scope>
    325325            </dependency>
     
    352352                <groupId>org.wiremock</groupId>
    353353                <artifactId>wiremock</artifactId>
    354                 <version>3.10.0</version>
     354                <version>3.13.2</version>
    355355                <scope>test</scope>
    356356            </dependency>
     
    358358                <groupId>io.github.classgraph</groupId>
    359359                <artifactId>classgraph</artifactId>
    360                 <version>4.8.179</version>
     360                <version>4.8.184</version>
    361361                <scope>test</scope>
    362362            </dependency>
     
    382382                <groupId>org.awaitility</groupId>
    383383                <artifactId>awaitility</artifactId>
    384                 <version>4.2.2</version>
     384                <version>4.3.0</version>
    385385                <scope>test</scope>
    386386            </dependency>
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxTrack.java

    r18399 r19502  
    211211    @Override
    212212    public int hashCode() {
    213         return 31 * super.hashCode() + ((segments == null) ? 0 : segments.hashCode());
     213        return 31 * super.hashCode() + ((segments == null) ? 0 : segments.hashCode())
     214            + ((attr == null) ? 0 : attr.hashCode());
    214215    }
    215216
     
    230231        } else if (!segments.equals(other.segments))
    231232            return false;
     233        if (attr == null) {
     234            if (other.attr != null)
     235                return false;
     236        } else if (!attr.equals(other.attr))
     237            return false;
    232238        return true;
    233239    }
  • 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.