Changeset 14603 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2018-12-27T16:38:36+01:00 (6 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/ImageDataTest.java
r14590 r14603 52 52 @Test 53 53 public void testmageEntryWithImages() { 54 assertEquals(1, new ImageData( this.getOneImage()).getImages().size());54 assertEquals(1, new ImageData(getOneImage()).getImages().size()); 55 55 } 56 56 57 57 @Test 58 58 public void testSortData() { 59 List<ImageEntry> list = this.getOneImage();59 List<ImageEntry> list = getOneImage(); 60 60 61 61 new Expectations(Collections.class) {{ … … 68 68 @Test 69 69 public void testIsModifiedFalse() { 70 assertFalse(new ImageData( this.getOneImage()).isModified());70 assertFalse(new ImageData(getOneImage()).isModified()); 71 71 } 72 72 73 73 @Test 74 74 public void testIsModifiedTrue() { 75 List<ImageEntry> list = this.getOneImage();75 List<ImageEntry> list = getOneImage(); 76 76 77 77 new Expectations(list.get(0)) {{ … … 84 84 @Test 85 85 public void testSelectFirstImage() { 86 List<ImageEntry> list = this.getOneImage();86 List<ImageEntry> list = getOneImage(); 87 87 88 88 ImageData data = new ImageData(list); … … 93 93 @Test 94 94 public void testSelectLastImage() { 95 List<ImageEntry> list = this.getOneImage();95 List<ImageEntry> list = getOneImage(); 96 96 list.add(new ImageEntry()); 97 97 … … 103 103 @Test 104 104 public void testSelectNextImage() { 105 List<ImageEntry> list = this.getOneImage();105 List<ImageEntry> list = getOneImage(); 106 106 107 107 ImageData data = new ImageData(list); … … 116 116 @Test 117 117 public void testSelectPreviousImage() { 118 List<ImageEntry> list = this.getOneImage();118 List<ImageEntry> list = getOneImage(); 119 119 list.add(new ImageEntry()); 120 120 … … 131 131 @Test 132 132 public void testSetSelectedImage() { 133 List<ImageEntry> list = this.getOneImage();133 List<ImageEntry> list = getOneImage(); 134 134 135 135 ImageData data = new ImageData(list); … … 140 140 @Test 141 141 public void testClearSelectedImage() { 142 List<ImageEntry> list = this.getOneImage();142 List<ImageEntry> list = getOneImage(); 143 143 144 144 ImageData data = new ImageData(list); … … 150 150 @Test 151 151 public void testSelectionListener() { 152 List<ImageEntry> list = this.getOneImage();152 List<ImageEntry> list = getOneImage(); 153 153 ImageData data = new ImageData(list); 154 154 ImageDataUpdateListener listener = new ImageDataUpdateListener() { … … 169 169 @Test 170 170 public void testRemoveSelectedImage() { 171 List<ImageEntry> list = this.getOneImage();171 List<ImageEntry> list = getOneImage(); 172 172 ImageData data = new ImageData(list); 173 173 data.selectFirstImage(); … … 179 179 @Test 180 180 public void testRemoveSelectedWithImageTriggerListener() { 181 List<ImageEntry> list = this.getOneImage();181 List<ImageEntry> list = getOneImage(); 182 182 list.add(new ImageEntry()); 183 183 ImageData data = new ImageData(list); … … 199 199 @Test 200 200 public void testRemoveImageAndTriggerListener() { 201 List<ImageEntry> list = this.getOneImage();201 List<ImageEntry> list = getOneImage(); 202 202 ImageData data = new ImageData(list); 203 203 ImageDataUpdateListener listener = new ImageDataUpdateListener() { … … 219 219 public void testMergeFrom() { 220 220 ImageEntry image = new ImageEntry(new File("test2")); 221 List<ImageEntry> list1 = this.getOneImage();221 List<ImageEntry> list1 = getOneImage(); 222 222 list1.add(image); 223 List<ImageEntry> list2 = this.getOneImage();223 List<ImageEntry> list2 = getOneImage(); 224 224 list2.add(new ImageEntry(new File("test3"))); 225 225 … … 244 244 public void testMergeFromSelectedImage() { 245 245 ImageEntry image = new ImageEntry(new File("test2")); 246 List<ImageEntry> list1 = this.getOneImage();246 List<ImageEntry> list1 = getOneImage(); 247 247 list1.add(image); 248 List<ImageEntry> list2 = this.getOneImage();248 List<ImageEntry> list2 = getOneImage(); 249 249 250 250 ImageData data = new ImageData(list1); … … 259 259 @Test 260 260 public void testUpdatePosition() { 261 List<ImageEntry> list = this.getOneImage();261 List<ImageEntry> list = getOneImage(); 262 262 ImageData data = new ImageData(list); 263 263 … … 271 271 @Test 272 272 public void testUpdateDirection() { 273 List<ImageEntry> list = this.getOneImage();273 List<ImageEntry> list = getOneImage(); 274 274 ImageData data = new ImageData(list); 275 275 … … 283 283 @Test 284 284 public void testTriggerListenerOnUpdate() { 285 List<ImageEntry> list = this.getOneImage();285 List<ImageEntry> list = getOneImage(); 286 286 ImageData data = new ImageData(list); 287 287 … … 303 303 @Test 304 304 public void testManuallyTriggerUpdateListener() { 305 List<ImageEntry> list = this.getOneImage();305 List<ImageEntry> list = getOneImage(); 306 306 ImageData data = new ImageData(list); 307 307 -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java
r14569 r14603 296 296 } 297 297 298 @SuppressWarnings("fallthrough") 298 299 private static AbstractTileSource getTileSource(ImageryInfo info) 299 300 throws IOException, WMTSGetCapabilitiesException, WMSGetCapabilitiesException {
Note:
See TracChangeset
for help on using the changeset viewer.