Search in sources :

Example 1 with GpxImageEntry

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();
}
Also used : GpxImageEntry(org.openstreetmap.josm.data.gpx.GpxImageEntry) GpxImageEntry(org.openstreetmap.josm.data.gpx.GpxImageEntry) ImageData(org.openstreetmap.josm.data.ImageData) File(java.io.File) Test(org.junit.jupiter.api.Test)

Example 2 with GpxImageEntry

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();
}
Also used : GpxImageEntry(org.openstreetmap.josm.data.gpx.GpxImageEntry) GpxImageEntry(org.openstreetmap.josm.data.gpx.GpxImageEntry) ImageData(org.openstreetmap.josm.data.ImageData) File(java.io.File) Test(org.junit.jupiter.api.Test)

Aggregations

File (java.io.File)2 Test (org.junit.jupiter.api.Test)2 ImageData (org.openstreetmap.josm.data.ImageData)2 GpxImageEntry (org.openstreetmap.josm.data.gpx.GpxImageEntry)2