Changeset 17661 in josm for trunk/test/unit


Ignore:
Timestamp:
2021-03-24T23:26:52+01:00 (3 years ago)
Author:
Don-vip
Message:

see #20653 - update unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/GeoJSONReaderTest.java

    r17356 r17661  
    55import static org.junit.jupiter.api.Assertions.assertFalse;
    66import static org.junit.jupiter.api.Assertions.assertNull;
     7import static org.junit.jupiter.api.Assertions.assertThrows;
    78import static org.junit.jupiter.api.Assertions.assertTrue;
    8 import static org.junit.jupiter.api.Assertions.assertThrows;
    99
    1010import java.io.ByteArrayInputStream;
     
    1919import java.util.stream.IntStream;
    2020
     21import org.junit.jupiter.api.Test;
    2122import org.junit.jupiter.api.extension.RegisterExtension;
    22 import org.junit.jupiter.api.Test;
    2323import org.openstreetmap.josm.TestUtils;
    2424import org.openstreetmap.josm.data.coor.LatLon;
     
    224224        String featureCollection = "{\"type\": \"FeatureCollection\", \"features\": {}}";
    225225        try (InputStream in = new ByteArrayInputStream(featureCollection.getBytes(StandardCharsets.UTF_8))) {
    226             IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
     226            IllegalDataException exception = assertThrows(IllegalDataException.class,
    227227                    () -> 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());
    229229        }
    230230    }
Note: See TracChangeset for help on using the changeset viewer.