Changeset 17120 in josm


Ignore:
Timestamp:
2020-10-08T21:03:00+02:00 (6 months ago)
Author:
simon04
Message:

see #18200 - Fix ImageDataTest after JMockit update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/ImageDataTest.java

    r17081 r17120  
    2020import mockit.Mock;
    2121import mockit.MockUp;
     22import mockit.Mocked;
     23import mockit.Verifications;
    2224
    2325/**
     
    5658
    5759    @Test
    58     public void testSortData() {
    59         List<ImageEntry> list = getOneImage();
    60 
    61         new Expectations(Collections.class) {{
     60    public void testSortData(@Mocked Collections ignore) {
     61        List<ImageEntry> list = getOneImage();
     62
     63        new ImageData(list);
     64
     65        new Verifications() {{
    6266            Collections.sort(list);
    6367        }};
    64 
    65         new ImageData(list);
    6668    }
    6769
Note: See TracChangeset for help on using the changeset viewer.