Changeset 31425 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2015-07-31T18:23:44+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/AbstractTest.java
r31418 r31425 19 19 @BeforeClass 20 20 public static void setUpBeforeClass() { 21 if (!started) { 22 TestUtil.initPlugin(); 23 started = true; 24 } 21 TestUtil.initPlugin(); 25 22 } 26 23 } -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/ImportTest.java
r31424 r31425 2 2 3 3 import static org.junit.Assert.*; 4 4 5 import org.junit.Test; 5 6 … … 27 28 @Test 28 29 public void importNoTagsTest() { 29 File image = new File( MapillaryPlugin.directory +"images/icon16.png");30 MapillaryImportedImage img = MapillaryPlugin.importAction.readNoTags(image,30 File image = new File("images/icon16.png"); 31 MapillaryImportedImage img = new MapillaryImportAction().readNoTags(image, 31 32 new LatLon(0, 0)); 32 33 assertEquals(0, img.getCa(), 0.01); -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/util/TestUtil.java
r31418 r31425 41 41 I18n.set(Main.pref.get("language", "en")); 42 42 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 43 try {44 new MapillaryPlugin(new PluginInformation(new File(45 "./build/libs/josm-mapillary-plugin.jar")));46 } catch (PluginException e) {47 e.printStackTrace();48 }49 43 isInitialized = true; 50 44 }
Note:
See TracChangeset
for help on using the changeset viewer.