Changeset 17870 in josm for trunk/test/unit


Ignore:
Timestamp:
2021-05-06T21:46:58+02:00 (4 years ago)
Author:
simon04
Message:

see #20813 - ThumbsLoaderTest: add assertions

File:
1 edited

Legend:

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

    r17856 r17870  
    1515import java.util.List;
    1616import java.util.stream.Collectors;
     17
     18import static org.junit.jupiter.api.Assertions.assertEquals;
     19import static org.junit.jupiter.api.Assertions.assertNotNull;
    1720
    1821/**
     
    3942        }
    4043        new ThumbsLoader(imageEntries).run();
     44        for (ImageEntry imageEntry : imageEntries) {
     45            assertNotNull(imageEntry.getThumbnail());
     46            assertEquals(ThumbsLoader.maxSize, Math.max(
     47                    imageEntry.getThumbnail().getWidth(null),
     48                    imageEntry.getThumbnail().getHeight(null)));
     49        }
    4150    }
    4251
Note: See TracChangeset for help on using the changeset viewer.