Changeset 13020 in josm for trunk/test/unit/org
- Timestamp:
- 2017-10-18T12:33:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/APIDataSetTest.java
r12673 r13020 179 179 180 180 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() 182 185 apiDataSet.getPrimitivesToDelete().add(r1); 183 apiDataSet.getPrimitivesToDelete().add(r2);184 apiDataSet.getPrimitivesToDelete().add(r3);185 apiDataSet.getPrimitivesToDelete().add(r4);186 186 apiDataSet.adjustRelationUploadOrder(); 187 187 List<OsmPrimitive> toDelete = apiDataSet.getPrimitivesToDelete(); 188 188 189 189 assertEquals(4, toDelete.size()); 190 assertTrue(toDelete.indexOf(r 2) < toDelete.indexOf(r1));191 assertTrue(toDelete.indexOf(r 3) < toDelete.indexOf(r1));190 assertTrue(toDelete.indexOf(r1) < toDelete.indexOf(r2)); 191 assertTrue(toDelete.indexOf(r1) < toDelete.indexOf(r3)); 192 192 } 193 193
Note:
See TracChangeset
for help on using the changeset viewer.