use of org.openstreetmap.josm.data.gpx.GpxImageEntry in project josm by openstreetmap.
the class ImageEntryTest method testEqualsContract.
/**
* Unit test of methods {@link ImageEntry#equals} and {@link ImageEntry#hashCode}.
*/
@Test
void testEqualsContract() {
TestUtils.assumeWorkingEqualsVerifier();
EqualsVerifier.forClass(ImageEntry.class).usingGetClass().suppress(Warning.NONFINAL_FIELDS).withPrefabValues(GpxImageEntry.class, new GpxImageEntry(new File("foo")), new GpxImageEntry(new File("bar"))).withPrefabValues(ImageData.class, new ImageData(), new ImageData(new ArrayList<>())).verify();
}
use of org.openstreetmap.josm.data.gpx.GpxImageEntry in project josm by JOSM.
the class ImageEntryTest method testEqualsContract.
/**
* Unit test of methods {@link ImageEntry#equals} and {@link ImageEntry#hashCode}.
*/
@Test
void testEqualsContract() {
TestUtils.assumeWorkingEqualsVerifier();
EqualsVerifier.forClass(ImageEntry.class).usingGetClass().suppress(Warning.NONFINAL_FIELDS).withPrefabValues(GpxImageEntry.class, new GpxImageEntry(new File("foo")), new GpxImageEntry(new File("bar"))).withPrefabValues(ImageData.class, new ImageData(), new ImageData(new ArrayList<>())).verify();
}
Aggregations