Changeset 32659 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2016-07-15T15:25:20+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/history/MapillaryRecordTest.java
r32653 r32659 177 177 @Test 178 178 public void commandJoinClass() { 179 CommandJoin cmd1 = new CommandJoin( Arrays.asList(new MapillaryAbstractImage[]{img1, img2}));180 CommandJoin cmd2 = new CommandJoin( Arrays.asList(new MapillaryAbstractImage[]{img2, img3}));179 CommandJoin cmd1 = new CommandJoin(img1, img2); 180 CommandJoin cmd2 = new CommandJoin(img2, img3); 181 181 182 182 this.record.addCommand(cmd1); … … 189 189 assertEquals(3, img1.getSequence().getImages().size()); 190 190 assertEquals(img3, img1.next().next()); 191 192 try { 193 this.record.addCommand(new CommandJoin(Arrays.asList(new MapillaryAbstractImage[]{img1, img2, img3}))); 194 fail(); 195 } catch (IllegalArgumentException e) { 196 // Expected output. 197 } 191 } 192 193 @Test(expected=NullPointerException.class) 194 public void commandJoinNull1() { 195 new CommandJoin(img1, null); 196 } 197 198 @Test(expected=NullPointerException.class) 199 public void commandJoinNull2() { 200 new CommandJoin(null, img1); 198 201 } 199 202 … … 203 206 @Test 204 207 public void commandUnjoinClass() { 205 CommandJoin join1 = new CommandJoin( 206 Arrays.asList(new MapillaryAbstractImage[]{this.img1, this.img2})); 207 CommandJoin join2 = new CommandJoin( 208 Arrays.asList(new MapillaryAbstractImage[]{this.img2, this.img3})); 208 CommandJoin join1 = new CommandJoin(this.img1, this.img2); 209 CommandJoin join2 = new CommandJoin(this.img2, this.img3); 209 210 210 211 CommandUnjoin cmd1 = new CommandUnjoin( … … 238 239 @Test 239 240 public void commandDeleteTest() { 240 CommandJoin join1 = new CommandJoin( Arrays.asList(new MapillaryAbstractImage[]{img1, img2}));241 CommandJoin join2 = new CommandJoin( Arrays.asList(new MapillaryAbstractImage[]{img2, img3}));241 CommandJoin join1 = new CommandJoin(img1, img2); 242 CommandJoin join2 = new CommandJoin(img2, img3); 242 243 243 244 CommandDelete cmd1 = new CommandDelete(
Note:
See TracChangeset
for help on using the changeset viewer.