Changeset 12806 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2017-09-09T17:48:13+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/GeoJSONWriterTest.java
r12439 r12806 16 16 import org.openstreetmap.josm.data.osm.Node; 17 17 import org.openstreetmap.josm.data.osm.Way; 18 import org.openstreetmap.josm.gui.layer.OsmDataLayer;19 18 20 19 /** … … 41 40 final DataSet ds = new DataSet(); 42 41 ds.addPrimitive(node); 43 final OsmDataLayer layer = new OsmDataLayer(ds, "foo", null); 44 final GeoJSONWriter writer = new GeoJSONWriter(layer); 42 final GeoJSONWriter writer = new GeoJSONWriter(ds); 45 43 assertEquals(("" + 46 44 "{\n" + … … 80 78 way.setNodes(Arrays.asList(n1, n2)); 81 79 ds.addPrimitive(way); 82 final OsmDataLayer layer = new OsmDataLayer(ds, "foo", null); 83 final GeoJSONWriter writer = new GeoJSONWriter(layer); 80 final GeoJSONWriter writer = new GeoJSONWriter(ds); 84 81 assertEquals(("" + 85 82 "{\n" + … … 118 115 try (FileInputStream in = new FileInputStream(TestUtils.getTestDataRoot() + "multipolygon.osm")) { 119 116 DataSet ds = OsmReader.parseDataSet(in, null); 120 final OsmDataLayer layer = new OsmDataLayer(ds, "foo", null); 121 final GeoJSONWriter writer = new GeoJSONWriter(layer); 117 final GeoJSONWriter writer = new GeoJSONWriter(ds); 122 118 assertTrue(writer.write().contains("MultiPolygon")); 123 119 } … … 132 128 try (FileInputStream in = new FileInputStream("data_nodist/multipolygon.osm")) { 133 129 DataSet ds = OsmReader.parseDataSet(in, null); 134 final OsmDataLayer layer = new OsmDataLayer(ds, "foo", null); 135 final GeoJSONWriter writer = new GeoJSONWriter(layer); 130 final GeoJSONWriter writer = new GeoJSONWriter(ds); 136 131 assertTrue(writer.write().contains("MultiPolygon")); 137 132 }
Note:
See TracChangeset
for help on using the changeset viewer.