This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch 1.4.1
in repository https://gitbox.apache.org/repos/asf/sis.git

commit a777ede83b29924237e4038edc8e6f51573bb118
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Wed Jul 2 14:29:58 2025 +0200

    Remove a test that fail. The test is about the command-line application
    and may be an issue with the environment (which EPSG database is available).
    The issue is better addressed on the main branch (1.5-SNAPSHOT).
---
 .../org/apache/sis/console/CRSCommandTest.java     | 110 ---------------------
 1 file changed, 110 deletions(-)

diff --git 
a/endorsed/src/org.apache.sis.console/test/org/apache/sis/console/CRSCommandTest.java
 
b/endorsed/src/org.apache.sis.console/test/org/apache/sis/console/CRSCommandTest.java
deleted file mode 100644
index 5671539541..0000000000
--- 
a/endorsed/src/org.apache.sis.console/test/org/apache/sis/console/CRSCommandTest.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.sis.console;
-
-import org.apache.sis.util.CharSequences;
-
-// Test dependencies
-import org.junit.Test;
-import org.apache.sis.test.DependsOnMethod;
-import org.apache.sis.test.DependsOn;
-import org.apache.sis.test.TestCase;
-
-import static org.junit.Assert.*;
-
-
-/**
- * Tests the {@link CRSCommand} sub-command.
- *
- * @author  Martin Desruisseaux (Geomatys)
- */
-@DependsOn(CommandRunnerTest.class)
-public final class CRSCommandTest extends TestCase {
-    /**
-     * The Well Known Text for EPSG:4326 as a regular expression.
-     * This string uses the native line separator. Consequently, test cases 
comparing
-     * against this pattern are expected to use that line separator for every 
lines.
-     */
-    private String WGS84;
-
-    /**
-     * Creates a new test.
-     */
-    public CRSCommandTest() {
-        final String name = "\"WGS\\E\\s?(?:19)?\\Q84\"";                      
                 // Accept "WGS 84" or "WGS 1984".
-        WGS84 = "(?m)\\Q" +                                                    
                 // Multilines.
-            "GeodeticCRS[" + name + ",\n" +
-            "  Datum[\"World Geodetic System 1984\",\n" +
-            "    Ellipsoid[" + name + ", 6378137.0, 298.257223563]],\n" +
-            "  CS[ellipsoidal, 2],\n" +
-            "    Axis[\"Latitude (B)\", north],\n" +
-            "    Axis[\"Longitude (L)\", east],\n" +
-            "    Unit[\"degree\", 0.017453292519943295],\n" +
-            "\\E(?:  Scope\\[\".+\"\\],\n)?\\Q" +                              
                 // Ignore SCOPE[…] if present.
-            "  Area[\"\\E.*\\Q\"],\n" +                                        
                 // Language may vary because of SIS localization.
-            "  BBox[-90.00, -180.00, 90.00, 180.00],\n" +
-            "  Id[\"EPSG\", 4326,\\E.*\\Q 
URI[\"urn:ogc:def:crs:EPSG:\\E.*\\Q:4326\"]]" +       // Version number of EPSG 
dataset may vary.
-            "\\E(?:,\n  Remark\\[\".+\"\\])?\\]\n";                            
                 // Ignore trailing REMARK[…] if present.
-        /*
-         * Insert the native line separator in the expected string. We modify 
the expected string
-         * instead of modifying the `test.outputBuffer` result because we want 
to verify that the
-         * native line separator appears in every output lines.
-         */
-        WGS84 = CharSequences.replace(WGS84, "\n", 
System.lineSeparator()).toString();
-    }
-
-    /**
-     * Tests fetching the CRS from a simple code ({@code "EPSG:4326"}).
-     *
-     * @throws Exception if an error occurred while creating the command.
-     */
-    @Test
-    public void testCode() throws Exception {
-        final CRSCommand test = new CRSCommand(0, CommandRunner.TEST, 
"EPSG:4326");
-        test.run();
-        final String wkt = test.outputBuffer.toString();
-        assertTrue(wkt, wkt.matches(WGS84));
-    }
-
-    /**
-     * Tests fetching the CRS from a URN ({@code 
"urn:ogc:def:crs:epsg::4326"}).
-     *
-     * @throws Exception if an error occurred while creating the command.
-     */
-    @Test
-    @DependsOnMethod("testCode")
-    public void testURN() throws Exception {
-        final CRSCommand test = new CRSCommand(0, CommandRunner.TEST, 
"urn:ogc:def:crs:epsg::4326");
-        test.run();
-        final String wkt = test.outputBuffer.toString();
-        assertTrue(wkt, wkt.matches(WGS84));
-    }
-
-    /**
-     * Tests fetching the CRS from a HTTP code ({@code 
"http://www.opengis.net/gml/srs/epsg.xml#4326"}).
-     *
-     * @throws Exception if an error occurred while creating the command.
-     */
-    @Test
-    @DependsOnMethod("testURN")
-    public void testHTTP() throws Exception {
-        final CRSCommand test = new CRSCommand(0, CommandRunner.TEST, 
"http://www.opengis.net/gml/srs/epsg.xml#4326";);
-        test.run();
-        final String wkt = test.outputBuffer.toString();
-        assertTrue(wkt, wkt.matches(WGS84));
-    }
-}

Reply via email to