Changeset 31410 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2015-07-27T14:52:11+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/ImportedImageTest.java
r31348 r31410 1 1 package org.openstreetmap.josm.plugins.mapillary; 2 2 3 import static org.junit.Assert.assertEquals; 4 5 import java.io.File; 3 6 import java.io.IOException; 7 8 import javax.imageio.IIOException; 4 9 5 10 import org.junit.Before; … … 13 18 } 14 19 15 @Test(expected=I llegalArgumentException.class)16 public void test NullFile() throws IOException {20 @Test(expected=IIOException.class) 21 public void testInvalidFiles() throws IOException { 17 22 MapillaryImportedImage img = new MapillaryImportedImage(0,0,0, null); 23 assertEquals(null, img.getImage()); 24 assertEquals(null, img.getFile()); 25 26 img = new MapillaryImportedImage(0, 0, 0, new File("")); 27 assertEquals(new File(""), img.getFile()); 18 28 img.getImage(); 19 29 }
Note:
See TracChangeset
for help on using the changeset viewer.