Changeset 18049 in josm for trunk/test
- Timestamp:
- 2021-07-17T16:24:05+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/ImageDataTest.java
r17715 r18049 55 55 assertFalse(data.hasNextImage()); 56 56 assertFalse(data.hasPreviousImage()); 57 data.removeSelectedImage ();57 data.removeSelectedImages(); 58 58 } 59 59 … … 182 182 183 183 @Test 184 void testRemoveSelectedImage() { 185 List<ImageEntry> list = getOneImage(); 186 ImageData data = new ImageData(list); 187 data.selectFirstImage(); 188 data.removeSelectedImage(); 184 void testRemoveSelectedImages() { 185 List<ImageEntry> list = getOneImage(); 186 list.add(new ImageEntry()); 187 188 ImageData data = new ImageData(list); 189 data.selectFirstImage(); 190 data.addImageToSelection(list.get(1)); 191 data.removeSelectedImages(); 189 192 assertEquals(0, data.getImages().size()); 190 193 assertEquals(0, data.getSelectedImages().size()); … … 192 195 193 196 @Test 194 void testRemoveSelectedImages() {195 List<ImageEntry> list = getOneImage();196 list.add(new ImageEntry());197 198 ImageData data = new ImageData(list);199 data.selectFirstImage();200 data.addImageToSelection(list.get(1));201 data.removeSelectedImages();202 assertEquals(0, data.getImages().size());203 assertEquals(0, data.getSelectedImages().size());204 }205 206 @Test207 197 void testRemoveSelectedImagesWithRemainingImages() { 208 198 List<ImageEntry> list = getOneImage(); … … 261 251 data.addImageDataUpdateListener(listener); 262 252 data.selectFirstImage(); 263 data.removeSelectedImage ();253 data.removeSelectedImages(); 264 254 } 265 255
Note:
See TracChangeset
for help on using the changeset viewer.