diff --git a/flatmap-core/src/test/java/com/onthegomap/flatmap/FeatureMergeTest.java b/flatmap-core/src/test/java/com/onthegomap/flatmap/FeatureMergeTest.java index f189790e..27c801d0 100644 --- a/flatmap-core/src/test/java/com/onthegomap/flatmap/FeatureMergeTest.java +++ b/flatmap-core/src/test/java/com/onthegomap/flatmap/FeatureMergeTest.java @@ -16,9 +16,13 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; import org.locationtech.jts.geom.Geometry; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class FeatureMergeTest { + private static final Logger LOGGER = LoggerFactory.getLogger(FeatureMergeTest.class); + private VectorTile.Feature feature(long id, Geometry geom, Map attrs) { return new VectorTile.Feature( "layer", @@ -579,8 +583,9 @@ public class FeatureMergeTest { "bostonbuildings.mbtiles, 2479, 3028, 13, 1074", "jakartabuildings.mbtiles, 6527, 4240, 13, 410" }) - public void testMergeManyPolygons(String file, int x, int y, int z, int expected) + public void testMergeManyPolygons__TAKES_A_MINUTE_OR_TWO(String file, int x, int y, int z, int expected) throws IOException, GeometryException { + LOGGER.warn("Testing complex polygon merging for " + file + " " + z + "/" + x + "/" + y + " ..."); try (var db = Mbtiles.newReadOnlyDatabase(TestUtils.pathToResource(file))) { byte[] tileData = db.getTile(x, y, z); byte[] gunzipped = TestUtils.gunzip(tileData); diff --git a/flatmap-core/src/test/java/com/onthegomap/flatmap/FlatmapTests.java b/flatmap-core/src/test/java/com/onthegomap/flatmap/FlatmapTests.java index 1b5e9545..89b602db 100644 --- a/flatmap-core/src/test/java/com/onthegomap/flatmap/FlatmapTests.java +++ b/flatmap-core/src/test/java/com/onthegomap/flatmap/FlatmapTests.java @@ -52,12 +52,16 @@ import org.locationtech.jts.geom.Geometry; import org.locationtech.jts.geom.MultiPolygon; import org.locationtech.jts.io.InputStreamInStream; import org.locationtech.jts.io.WKBReader; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * In-memory tests with fake data and profiles to ensure all features work end-to-end. */ public class FlatmapTests { + private static final Logger LOGGER = LoggerFactory.getLogger(FlatmapTests.class); + private static final String TEST_PROFILE_NAME = "test name"; private static final String TEST_PROFILE_DESCRIPTION = "test description"; private static final String TEST_PROFILE_ATTRIBUTION = "test attribution"; @@ -678,6 +682,7 @@ public class FlatmapTests { }) public void testComplexShorelinePolygons__TAKES_A_MINUTE_OR_TWO(String fileName, int expected) throws Exception { + LOGGER.warn("Testing complex shoreline processing for " + fileName + " ..."); MultiPolygon geometry = (MultiPolygon) new WKBReader() .read(new InputStreamInStream(Files.newInputStream(TestUtils.pathToResource(fileName)))); assertNotNull(geometry);