This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 5fd89537763409fdc0f6c66a7022b4f2ac1d9ef2 Author: jsorel <[email protected]> AuthorDate: Mon Nov 30 15:14:27 2026 +0100 test(*): add junit 5 params dependency --- incubator/build.gradle.kts | 3 ++- incubator/src/org.apache.sis.test.incubator/test/module-info.java | 1 + netbeans-project/ivy.xml | 1 + netbeans-project/nbproject/project.properties | 2 ++ settings.gradle.kts | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/incubator/build.gradle.kts b/incubator/build.gradle.kts index 9581c4614c..c85438f38a 100644 --- a/incubator/build.gradle.kts +++ b/incubator/build.gradle.kts @@ -54,6 +54,7 @@ dependencies { // Test dependencies testImplementation(tests.junit5) + testImplementation(tests.junitParams) testRuntimeOnly (tests.jupiter) /* * Dependencies used only by incubated modules. The dependencies are not declared @@ -95,7 +96,7 @@ tasks.compileTestJava { options.compilerArgs.add("-source") // "source", not "release", because we accept any target version. options.compilerArgs.add("22") srcDir.list().forEach { - addRead(options.compilerArgs, it, "org.apache.sis.test.incubator,org.junit.jupiter.api") + addRead(options.compilerArgs, it, "org.apache.sis.test.incubator,org.junit.jupiter.api,org.junit.jupiter.params") } addExportForTests(options.compilerArgs) } diff --git a/incubator/src/org.apache.sis.test.incubator/test/module-info.java b/incubator/src/org.apache.sis.test.incubator/test/module-info.java index 590feebb10..27e5616d9a 100644 --- a/incubator/src/org.apache.sis.test.incubator/test/module-info.java +++ b/incubator/src/org.apache.sis.test.incubator/test/module-info.java @@ -22,6 +22,7 @@ */ module org.apache.sis.test.incubator { requires transitive org.junit.jupiter.api; + requires transitive org.junit.jupiter.params; requires org.apache.sis.feature; requires org.apache.sis.storage; requires org.locationtech.jts; diff --git a/netbeans-project/ivy.xml b/netbeans-project/ivy.xml index b12818cb29..bbdace538d 100644 --- a/netbeans-project/ivy.xml +++ b/netbeans-project/ivy.xml @@ -29,6 +29,7 @@ <dependency org="org.antlr" name="antlr4-maven-plugin" rev="4.13.2"/> <dependency org="org.junit.platform" name="junit-platform-launcher" rev="1.10.3"/> <dependency org="org.junit.jupiter" name="junit-jupiter-api" rev="5.10.3"/> + <dependency org="org.junit.jupiter" name="junit-jupiter-params" rev="5.10.3"/> <dependency org="org.apache.derby" name="derby" rev="10.17.1.0"/> <dependency org="org.apache.derby" name="derbytools" rev="10.17.1.0"/> <dependency org="org.apache.derby" name="derbyshared" rev="10.17.1.0"/> diff --git a/netbeans-project/nbproject/project.properties b/netbeans-project/nbproject/project.properties index f5be9354b4..cb9af8a45e 100644 --- a/netbeans-project/nbproject/project.properties +++ b/netbeans-project/nbproject/project.properties @@ -83,6 +83,7 @@ modules.list = org.apache.sis.cloud.aws,\ read.options = --add-reads org.apache.sis.cloud.aws=org.junit.jupiter.api,junit \ --add-reads org.apache.sis.console=org.junit.jupiter.api,junit \ --add-reads org.apache.sis.feature=org.junit.jupiter.api,junit \ + --add-reads org.apache.sis.geometry=org.junit.jupiter.api,org.junit.jupiter.params,junit \ --add-reads org.apache.sis.metadata=org.junit.jupiter.api,junit \ --add-reads org.apache.sis.openoffice=org.junit.jupiter.api,junit \ --add-reads org.apache.sis.portrayal=org.junit.jupiter.api,junit \ @@ -117,6 +118,7 @@ test.options = --add-modules jama,GeographicLib.Java,\ software.amazon.awssdk.utils,\ org.opengis.geoapi.conformance,\ org.junit.jupiter.api,\ + org.junit.jupiter.params,\ ${modules.list} \ --add-exports org.apache.sis.util/org.apache.sis.test=${modules.list} \ --add-exports org.apache.sis.metadata/org.apache.sis.test.mock=${modules.list} \ diff --git a/settings.gradle.kts b/settings.gradle.kts index 233b8b782b..13061dc235 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -76,6 +76,7 @@ dependencyResolutionManagement { create("tests") { library("geoapi", "org.opengis", "geoapi-conformance") .version {strictly(geoapiVersion)} library("junit5", "org.junit.jupiter", "junit-jupiter-api") .version {strictly("5.10.3")} + library("junitParams", "org.junit.jupiter", "junit-jupiter-params") .version {strictly("5.10.3")} library("jupiter", "org.junit.jupiter", "junit-jupiter-engine") .version {strictly("5.10.3")} library("jama", "gov.nist.math", "jama") .version {strictly("1.0.3")} library("geographiclib", "net.sf.geographiclib", "GeographicLib-Java") .version {strictly("2.1")}
