Changeset 14212 in josm for trunk/test
- Timestamp:
- 2018-08-31T23:45:00+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/ImageEntryTest.java
r9669 r14212 8 8 import org.junit.Test; 9 9 import org.openstreetmap.josm.TestUtils; 10 import org.openstreetmap.josm.data.gpx.GpxImageEntry; 11 12 import nl.jqno.equalsverifier.EqualsVerifier; 13 import nl.jqno.equalsverifier.Warning; 10 14 11 15 /** … … 23 27 assertNotNull(e.getExifTime()); 24 28 } 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 } 25 41 }
Note:
See TracChangeset
for help on using the changeset viewer.