Changeset 14212 in josm for trunk/test


Ignore:
Timestamp:
2018-08-31T23:45:00+02:00 (7 years ago)
Author:
Don-vip
Message:

sonarqube - various minor issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/ImageEntryTest.java

    r9669 r14212  
    88import org.junit.Test;
    99import org.openstreetmap.josm.TestUtils;
     10import org.openstreetmap.josm.data.gpx.GpxImageEntry;
     11
     12import nl.jqno.equalsverifier.EqualsVerifier;
     13import nl.jqno.equalsverifier.Warning;
    1014
    1115/**
     
    2327        assertNotNull(e.getExifTime());
    2428    }
     29
     30    /**
     31     * Unit test of methods {@link ImageEntry#equals} and {@link ImageEntry#hashCode}.
     32     */
     33    @Test
     34    public void testEqualsContract() {
     35        TestUtils.assumeWorkingEqualsVerifier();
     36        EqualsVerifier.forClass(ImageEntry.class).usingGetClass()
     37            .suppress(Warning.NONFINAL_FIELDS)
     38            .withPrefabValues(GpxImageEntry.class, new GpxImageEntry(new File("foo")), new GpxImageEntry(new File("bar")))
     39            .verify();
     40    }
    2541}
Note: See TracChangeset for help on using the changeset viewer.