Changeset 14202 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2018-08-29T20:50:13+02:00 (6 years ago)
Author:
Don-vip
Message:

spotbugs - more fixes

Location:
trunk/test/unit/org/openstreetmap/josm/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java

    r14201 r14202  
    3636     * Lat/Lon sample values for unit tests
    3737     */
     38    @SuppressFBWarnings(value = "MS_MUTABLE_COLLECTION")
    3839    public static final List<Double> SAMPLE_VALUES = Arrays.asList(
    3940            // CHECKSTYLE.OFF: SingleSpaceSeparator
  • trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRendererTest.java

    r12078 r14202  
    77import org.junit.Test;
    88import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer.StyleRecord;
     9
     10import nl.jqno.equalsverifier.EqualsVerifier;
     11import nl.jqno.equalsverifier.Warning;
    912
    1013/**
     
    7073    }
    7174
    72     private long floatToFixedCheckBits(float number, int totalBits) {
     75    private static long floatToFixedCheckBits(float number, int totalBits) {
    7376        long result = StyleRecord.floatToFixed(number, totalBits);
    7477        long shouldBeZero = result >> totalBits;
     
    7780    }
    7881
     82    /**
     83     * Unit test of methods {@link StyleRecord#equals} and {@link StyleRecord#hashCode}.
     84     */
     85    @Test
     86    public void testEqualsContract() {
     87        EqualsVerifier.forClass(StyleRecord.class).usingGetClass()
     88            .suppress(Warning.NONFINAL_FIELDS)
     89            .verify();
     90    }
    7991}
Note: See TracChangeset for help on using the changeset viewer.