Changeset 13020 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2017-10-18T12:33:51+02:00 (7 years ago)
Author:
bastiK
Message:

see #15374 - update unit test

File:
1 edited

Legend:

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

    r12673 r13020  
    179179
    180180        APIDataSet apiDataSet = new APIDataSet();
    181         // add r1 first to test functionality of APIDataSet#adjustRelationUploadOrder()
     181        apiDataSet.getPrimitivesToDelete().add(r4);
     182        apiDataSet.getPrimitivesToDelete().add(r3);
     183        apiDataSet.getPrimitivesToDelete().add(r2);
     184        // add r1 last to test functionality of APIDataSet#adjustRelationUploadOrder()
    182185        apiDataSet.getPrimitivesToDelete().add(r1);
    183         apiDataSet.getPrimitivesToDelete().add(r2);
    184         apiDataSet.getPrimitivesToDelete().add(r3);
    185         apiDataSet.getPrimitivesToDelete().add(r4);
    186186        apiDataSet.adjustRelationUploadOrder();
    187187        List<OsmPrimitive> toDelete = apiDataSet.getPrimitivesToDelete();
    188188
    189189        assertEquals(4, toDelete.size());
    190         assertTrue(toDelete.indexOf(r2) < toDelete.indexOf(r1));
    191         assertTrue(toDelete.indexOf(r3) < toDelete.indexOf(r1));
     190        assertTrue(toDelete.indexOf(r1) < toDelete.indexOf(r2));
     191        assertTrue(toDelete.indexOf(r1) < toDelete.indexOf(r3));
    192192    }
    193193
Note: See TracChangeset for help on using the changeset viewer.