Changeset 15957 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2020-02-29T00:27:00+01:00 (5 years ago)
Author:
Don-vip
Message:

see #18772 - fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/TerritoriesTest.java

    r15956 r15957  
    8686        Territories.initializeExternalData(cache, "foo", TestUtils.getTestDataRoot() + "taginfo/geofabrik-index-v1-nogeom-broken.json");
    8787        assertTrue(cache.isEmpty());
    88         assertEquals("W: Failed to parse external taginfo data at test/data/taginfo/geofabrik-index-v1-nogeom-broken.json: " +
    89                 "Invalid token=EOF at (line no=3, column no=49, offset=97). Expected tokens are: " +
    90                 "[CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL, SQUARECLOSE]",
    91                 Logging.getLastErrorAndWarnings().get(0));
     88        String error = Logging.getLastErrorAndWarnings().get(0);
     89        assertTrue(error.startsWith("W: Failed to parse external taginfo data at "));
     90        assertTrue(error.endsWith(": Invalid token=EOF at (line no=3, column no=49, offset=97). Expected tokens are: " +
     91                "[CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL, SQUARECLOSE]"));
    9292    }
    9393}
Note: See TracChangeset for help on using the changeset viewer.