Skip to content

Commit

Permalink
See #23165: Use test file with smaller (Integer.MAX_VALUE) changeset id
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@18827 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
taylor.smock committed Sep 12, 2023
1 parent fd4985f commit 9b4aefa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Binary file modified test/data/regress/23165/largeIds.osm.pbf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -144,25 +144,4 @@ void testIdParsing() throws IOException, IllegalDataException {
assertNotNull(dataSet.getPrimitiveById(9223372036854775806L, OsmPrimitiveType.WAY));
assertNotNull(dataSet.getPrimitiveById(9223372036854775806L, OsmPrimitiveType.RELATION));
}

@ParameterizedTest
@ValueSource(strings = {"Downloads/24165.osm.pbf", "workspace/tasking-manager/frontend/24165.osmosis.osm.pbf",
"workspace/tasking-manager/frontend/24165.osmium.osm.pbf"})
void test23165(String path) throws IOException {
try (InputStream is = Files.newInputStream(Paths.get("/Users/tsmock", path))) {
DataSet ds = assertDoesNotThrow(() -> importer.parseDataSet(is, NullProgressMonitor.INSTANCE));
assertNotNull(ds.getPrimitiveById(22319993769L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(32920002105L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(29706529395L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(23842321089L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(31341235510L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(30053292843L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(28917983832L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(29875275836L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(32694472600L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(22545520445L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(23222110547L, OsmPrimitiveType.NODE));
assertNotNull(ds.getPrimitiveById(2147640293L, OsmPrimitiveType.WAY));
}
}
}

0 comments on commit 9b4aefa

Please sign in to comment.