You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2021/09/28 17:03:55 UTC
[sis] 03/04: Skip a test if the EPSG geodetic dataset is not
present.
This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
commit e1bf4318ef23e1b078f2485da68bfe505a6eeaec
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Tue Sep 28 14:21:44 2021 +0200
Skip a test if the EPSG geodetic dataset is not present.
---
.../java/org/apache/sis/test/integration/CoordinateOperationTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/sis-referencing/src/test/java/org/apache/sis/test/integration/CoordinateOperationTest.java b/core/sis-referencing/src/test/java/org/apache/sis/test/integration/CoordinateOperationTest.java
index 4d4fd7f..faa7d6c 100644
--- a/core/sis-referencing/src/test/java/org/apache/sis/test/integration/CoordinateOperationTest.java
+++ b/core/sis-referencing/src/test/java/org/apache/sis/test/integration/CoordinateOperationTest.java
@@ -40,6 +40,7 @@ import org.apache.sis.geometry.DirectPosition2D;
import org.apache.sis.test.DependsOn;
import org.junit.Test;
+import static org.junit.Assume.assumeTrue;
import static org.apache.sis.test.Assert.*;
@@ -191,6 +192,8 @@ public final strictfp class CoordinateOperationTest extends MathTransformTestCas
final double expectedY = 175688.20;
CRSAuthorityFactory crsFactory = CRS.getAuthorityFactory("EPSG");
+ assumeTrue("EPSG authority factory is required for this test.",
+ crsFactory instanceof CoordinateOperationAuthorityFactory);
CoordinateOperationAuthorityFactory opFactory = (CoordinateOperationAuthorityFactory) crsFactory;
// MGI (Ferro) to WGS 84 (1)