Changeset 30583 in osm for applications/editors/josm/plugins/opendata/test
- Timestamp:
- 2014-08-15T14:26:05+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/MifReaderTest.java
r30573 r30583 11 11 import org.openstreetmap.josm.JOSMFixture; 12 12 import org.openstreetmap.josm.TestUtils; 13 import org.openstreetmap.josm.data.osm.DataSet; 14 import org.openstreetmap.josm.data.projection.Projections; 15 import org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler; 13 16 import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests; 14 17 … … 26 29 } 27 30 31 private static AbstractDataSetHandler newHandler(final String epsgCode) { 32 AbstractDataSetHandler handler = new AbstractDataSetHandler() { 33 @Override 34 public boolean acceptsFilename(String filename) { 35 return true; 36 } 37 @Override 38 public void updateDataSet(DataSet ds) { 39 } 40 }; 41 DefaultMifHandler mifHandler = new DefaultMifHandler(); 42 mifHandler.setCoordSysNonEarthProjection(Projections.getProjectionByCode(epsgCode)); 43 handler.setMifHandler(mifHandler); 44 return handler; 45 } 46 28 47 /** 29 48 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/9592">#9592</a> … … 34 53 File file = new File(TestUtils.getRegressionDataFile(9592, "bg.mif")); 35 54 try (InputStream is = new FileInputStream(file)) { 36 NonRegFunctionalTests.testGeneric("#9592", MifReader.parseDataSet(is, file, n ull, null));55 NonRegFunctionalTests.testGeneric("#9592", MifReader.parseDataSet(is, file, newHandler("EPSG:32635"), null)); 37 56 } 38 57 }
Note:
See TracChangeset
for help on using the changeset viewer.