This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/sis.git
commit 1dd515ff2f5b1462935932bb94e0e5061288c4fd Merge: adb4d10776 56fa4c52ad Author: Martin Desruisseaux <[email protected]> AuthorDate: Wed Oct 1 16:03:14 2025 +0200 Merge branch 'geoapi-3.1' .../sis/coverage/internal/shared/package-info.java | 2 -- .../sis/image/internal/shared/package-info.java | 2 -- .../sis/metadata/internal/shared/package-info.java | 2 -- .../metadata/sql/internal/shared/Initializer.java | 4 +++ .../apache/sis/setup/InstallationResources.java | 6 ++-- .../sis/util/internal/shared/package-info.java | 2 -- .../sis/resources/embedded/EmbeddedResources.java | 19 +++++++--- .../resources/embedded/EmbeddedResourcesTest.java | 42 ++++++++++------------ .../apache/sis/resources/embedded/Generator.java | 41 ++++++++++++--------- 9 files changed, 65 insertions(+), 55 deletions(-) diff --cc optional/src/org.apache.sis.referencing.database/test/org/apache/sis/resources/embedded/EmbeddedResourcesTest.java index 63393cfbea,cab83b2b7a..32a29b6367 --- a/optional/src/org.apache.sis.referencing.database/test/org/apache/sis/resources/embedded/EmbeddedResourcesTest.java +++ b/optional/src/org.apache.sis.referencing.database/test/org/apache/sis/resources/embedded/EmbeddedResourcesTest.java @@@ -126,28 -141,12 +138,12 @@@ public final strictfp class EmbeddedRes } /** - * Tests the use of the embedded database. This test asks for a CRS for which no hard-coded fallback exists - * in {@link org.apache.sis.referencing.CommonCRS}. Consequently, this test should fail if we do not have a - * connection to a complete <abbr>EPSG</abbr> database. - * - * @throws FactoryException if an error occurred while creating the <abbr>CRS</abbr>. - * - * @todo The test is currently not executed because {@code SIS_DATA} is set by the build script. - * We need a way to ignore it. - */ - @Test - public void testCrsforCode() throws FactoryException { - assumeContainsEPSG(); - final String dir = DataDirectory.getenv(); - assumeTrue((dir == null) || dir.isEmpty(), "The SIS_DATA environment variable must be unset for enabling this test."); - verifyEPSG_6676(CRS.forCode("EPSG:6676")); - } - - /** - * Verifies the <abbr>CRS</abbr> created from code EPSG:6676 + * Verifies the <abbr>CRS</abbr> created from code EPSG:6676. This is a <abbr>CRS</abbr> + * for which no hard-coded fallback exists in {@link org.apache.sis.referencing.CommonCRS}. + * Consequently, this verification fails if we do not have a connection to a complete <abbr>EPSG</abbr> database. */ private static void verifyEPSG_6676(final CoordinateReferenceSystem crs) { - String area = TestUtilities.getSingleton(crs.getDomains()).getDomainOfValidity().getDescription().toString(); + String area = crs.getDomainOfValidity().getDescription().toString(); assertTrue(area.contains("Japan"), area); } }
