Changeset 15865 in josm for trunk/test/unit/org
- Timestamp:
- 2020-02-16T22:29:06+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/GeoJSONReaderTest.java
r15736 r15865 7 7 import static org.junit.Assert.assertTrue; 8 8 9 import java.io.ByteArrayInputStream; 9 10 import java.io.InputStream; 11 import java.nio.charset.StandardCharsets; 10 12 import java.nio.file.Files; 11 13 import java.nio.file.Paths; … … 133 135 } 134 136 137 /** 138 * Test reading a JSON file which is not a proper GeoJSON (type missing). 139 * @throws IllegalDataException always 140 */ 141 @Test(expected = IllegalDataException.class) 142 public void testReadGeoJsonWithoutType() throws IllegalDataException { 143 new GeoJSONReader().doParseDataSet(new ByteArrayInputStream("{}".getBytes(StandardCharsets.UTF_8)), null); 144 } 145 135 146 private static boolean areEqualNodes(final OsmPrimitive p1, final OsmPrimitive p2) { 136 147 return (p1 instanceof Node)
Note:
See TracChangeset
for help on using the changeset viewer.