Changeset 17661 in josm
- Timestamp:
- 2021-03-24T23:26:52+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/GeoJSONReaderTest.java
r17356 r17661 5 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 6 import static org.junit.jupiter.api.Assertions.assertNull; 7 import static org.junit.jupiter.api.Assertions.assertThrows; 7 8 import static org.junit.jupiter.api.Assertions.assertTrue; 8 import static org.junit.jupiter.api.Assertions.assertThrows;9 9 10 10 import java.io.ByteArrayInputStream; … … 19 19 import java.util.stream.IntStream; 20 20 21 import org.junit.jupiter.api.Test; 21 22 import org.junit.jupiter.api.extension.RegisterExtension; 22 import org.junit.jupiter.api.Test;23 23 import org.openstreetmap.josm.TestUtils; 24 24 import org.openstreetmap.josm.data.coor.LatLon; … … 224 224 String featureCollection = "{\"type\": \"FeatureCollection\", \"features\": {}}"; 225 225 try (InputStream in = new ByteArrayInputStream(featureCollection.getBytes(StandardCharsets.UTF_8))) { 226 Illegal ArgumentException exception = assertThrows(IllegalArgumentException.class,226 IllegalDataException exception = assertThrows(IllegalDataException.class, 227 227 () -> new GeoJSONReader().doParseDataSet(in, null)); 228 assertEquals(" features must be ARRAY, but is OBJECT", exception.getMessage());228 assertEquals("java.lang.IllegalArgumentException: features must be ARRAY, but is OBJECT", exception.getMessage()); 229 229 } 230 230 }
Note:
See TracChangeset
for help on using the changeset viewer.