sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/04: Re-enable test execution as a test suite.
Date Tue, 13 Jul 2021 16:53:24 GMT
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 fb628eb3ce0fe16f2a4438f7491d49aa9cf9a509
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Tue Jul 13 17:15:19 2021 +0200

    Re-enable test execution as a test suite.
---
 .../org/apache/sis/test/suite/SQLTestSuite.java    | 42 ++++++++++++++++++++++
 .../org/apache/sis/test/suite/package-info.txt     |  3 ++
 2 files changed, 45 insertions(+)

diff --git a/storage/sis-sqlstore/src/test/java/org/apache/sis/test/suite/SQLTestSuite.java
b/storage/sis-sqlstore/src/test/java/org/apache/sis/test/suite/SQLTestSuite.java
new file mode 100644
index 0000000..3288ada
--- /dev/null
+++ b/storage/sis-sqlstore/src/test/java/org/apache/sis/test/suite/SQLTestSuite.java
@@ -0,0 +1,42 @@
+/*
+ * 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.suite;
+
+import org.apache.sis.test.TestSuite;
+import org.junit.runners.Suite;
+import org.junit.BeforeClass;
+
+
+/**
+ * All tests from the {@code sis-sqlstore} module, in rough dependency order.
+ */
+@Suite.SuiteClasses({
+    org.apache.sis.internal.sql.feature.EWKBTest.class,
+    org.apache.sis.internal.sql.feature.FilterInterpreterTest.class,
+    org.apache.sis.internal.sql.feature.PostGISMappingTest.class,
+    org.apache.sis.storage.sql.SQLStoreTest.class
+})
+public final strictfp class SQLTestSuite extends TestSuite {
+    /**
+     * Verifies the list of tests before to run the suite.
+     * See {@link #verifyTestList(Class, Class[])} for more information.
+     */
+    @BeforeClass
+    public static void verifyTestList() {
+        verifyTestList(SQLTestSuite.class);
+    }
+}
diff --git a/storage/sis-sqlstore/src/test/java/org/apache/sis/test/suite/package-info.txt
b/storage/sis-sqlstore/src/test/java/org/apache/sis/test/suite/package-info.txt
new file mode 100644
index 0000000..ac895b5
--- /dev/null
+++ b/storage/sis-sqlstore/src/test/java/org/apache/sis/test/suite/package-info.txt
@@ -0,0 +1,3 @@
+Different modules provide classes in this package - be careful about collisions.
+This package is initially defined by the sis-utility module, which also provides
+the package-info.java file.

Mime
View raw message