Author: desruisseaux
Date: Tue May 10 15:53:29 2022
New Revision: 1900786

URL: http://svn.apache.org/viewvc?rev=1900786&view=rev
Log:
Move integration tests to a separated project.
Make the staging repository test independent of test JARs.

Added:
    sis/release-test/integration/
      - copied from r1900781, sis/release-test/maven/
    sis/release-test/integration/pom.xml
      - copied, changed from r1900785, sis/release-test/maven/pom.xml
    
sis/release-test/maven/src/test/java/org/apache/sis/test/SelfConsistencyTest.java
Removed:
    
sis/release-test/maven/src/test/java/org/apache/sis/test/IntegrationTest.java
Modified:
    sis/release-test/maven/pom.xml

Copied: sis/release-test/integration/pom.xml (from r1900785, 
sis/release-test/maven/pom.xml)
URL: 
http://svn.apache.org/viewvc/sis/release-test/integration/pom.xml?p2=sis/release-test/integration/pom.xml&p1=sis/release-test/maven/pom.xml&r1=1900785&r2=1900786&rev=1900786&view=diff
==============================================================================
--- sis/release-test/maven/pom.xml (original)
+++ sis/release-test/integration/pom.xml Tue May 10 15:53:29 2022
@@ -26,22 +26,14 @@
   <modelVersion>4.0.0</modelVersion>
 
   <groupId>org.apache.sis.test</groupId>
-  <artifactId>maven</artifactId>
+  <artifactId>integration</artifactId>
   <version>1.2</version>
   <packaging>jar</packaging>
 
   <name>Release candidate test</name>
   <url>http://sis.apache.org</url>
   <description>
-    Test the Apache SIS release candidate on the staging repository.
-    Testers need to edit the URL of the 'sis.staging' repository below.
-    The URL is given by the release manager when a release candidate is
-    submitted. Typically, only the three last digits need to be updated.
-
-    Next, testers need to recursively delete the Apache SIS artifacts
-    from their local repository (~/.m2/repository/org/apache/sis), in
-    order to ensure that the tested JAR files are the ones downloaded
-    from the staging repository.
+    Test the execution of all SIS tests in a single project.
   </description>
 
   <properties>

Modified: sis/release-test/maven/pom.xml
URL: 
http://svn.apache.org/viewvc/sis/release-test/maven/pom.xml?rev=1900786&r1=1900785&r2=1900786&view=diff
==============================================================================
--- sis/release-test/maven/pom.xml (original)
+++ sis/release-test/maven/pom.xml Tue May 10 15:53:29 2022
@@ -165,91 +165,6 @@
       <artifactId>geoapi-conformance</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.apache.sis.core</groupId>
-      <artifactId>sis-utility</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.core</groupId>
-      <artifactId>sis-metadata</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.core</groupId>
-      <artifactId>sis-referencing</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.core</groupId>
-      <artifactId>sis-referencing-by-identifiers</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.core</groupId>
-      <artifactId>sis-feature</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.storage</groupId>
-      <artifactId>sis-storage</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.storage</groupId>
-      <artifactId>sis-netcdf</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.storage</groupId>
-      <artifactId>sis-xmlstore</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.storage</groupId>
-      <artifactId>sis-geotiff</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.storage</groupId>
-      <artifactId>sis-earth-observation</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.storage</groupId>
-      <artifactId>sis-sqlstore</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sis.application</groupId>
-      <artifactId>sis-console</artifactId>
-      <version>${sis.version}</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-
-    <dependency>
       <groupId>org.glassfish.jaxb</groupId>
       <artifactId>jaxb-runtime</artifactId>
       <scope>test</scope>

Added: 
sis/release-test/maven/src/test/java/org/apache/sis/test/SelfConsistencyTest.java
URL: 
http://svn.apache.org/viewvc/sis/release-test/maven/src/test/java/org/apache/sis/test/SelfConsistencyTest.java?rev=1900786&view=auto
==============================================================================
--- 
sis/release-test/maven/src/test/java/org/apache/sis/test/SelfConsistencyTest.java
 (added)
+++ 
sis/release-test/maven/src/test/java/org/apache/sis/test/SelfConsistencyTest.java
 Tue May 10 15:53:29 2022
@@ -0,0 +1,43 @@
+/*
+ * 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.test;
+
+import org.opengis.referencing.crs.CoordinateReferenceSystem;
+import org.opengis.util.FactoryException;
+import org.apache.sis.referencing.CRS;
+import org.apache.sis.util.Utilities;
+import org.junit.Test;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * Applies a few self-consistency check.
+ */
+public class SelfConsistencyTest {
+    /**
+     * Tests fetching a CRS from an EPSG code, formatting to WKT, then parsing 
the WKT.
+     *
+     * @throws FactoryException if the CRS can not be obtained.
+     */
+    @Test
+    public void testParseWKT() throws FactoryException {
+        CoordinateReferenceSystem crs = CRS.forCode("EPSG::3395");
+        CoordinateReferenceSystem roundTrip = CRS.fromWKT(crs.toWKT());
+        assertTrue(Utilities.equalsIgnoreMetadata(crs, roundTrip));
+    }
+}


Reply via email to