Ignore:
Timestamp:
2024-06-05T19:04:29+02:00 (7 months ago)
Author:
taylor.smock
Message:

Fix more plugin tests

For reverter, the test needed to be updated for newer WireMock versions.
For graphview, the assert in production code was removed and replaced with
requireNonNull for the parameters that are actually used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/property/RoadIncline.java

    r32620 r36272  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.plugins.graphview.core.property;
     3
     4import java.util.Objects;
    35
    46import org.openstreetmap.josm.plugins.graphview.core.access.AccessParameters;
     
    1820    public <N, W, R, M> Float evaluateW(W way, boolean forward, AccessParameters accessParameters,
    1921            DataSource<N, W, R, M> dataSource) {
    20         assert way != null && accessParameters != null && dataSource != null;
     22        Objects.requireNonNull(way, "way");
     23        Objects.requireNonNull(dataSource, "dataSource");
    2124
    2225        TagGroup tags = dataSource.getTagsW(way);
Note: See TracChangeset for help on using the changeset viewer.