JAVA-26760: Updated and standardized the junit-jupiter-engine library (#16357)

* JAVA-26760: Updated and standardized the junit-jupiter-engine library

* JAVA-26760: Updated and standardized the mockito-junit-jupiter library

* fix mockito-junit-jupiter properties

* fix maven-custom-plugin/usage-example properties

* Fix quarkus-funqy

* JAVA-26760: Fix NamespacedHierarchicalStore error in junit
This commit is contained in:
Harry9656 2024-04-23 18:45:06 +02:00 committed by GitHub
parent 9177009ab6
commit 6b0c4b9a80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
47 changed files with 51 additions and 59 deletions

View File

@ -113,7 +113,6 @@
<guice.version>5.1.0</guice.version>
<system-stubs-junit4.version>2.0.2</system-stubs-junit4.version>
<assertj-core.version>3.19.0</assertj-core.version>
<junit-jupiter.version>5.8.1</junit-jupiter.version>
</properties>
</project>

View File

@ -27,7 +27,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.2.0</version>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -15,13 +15,13 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.9.2</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -20,6 +20,10 @@
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
</dependency>
<!-- this is all you need to write tests with JUnit Jupiter -->
<dependency>
<groupId>org.junit.jupiter</groupId>

View File

@ -45,7 +45,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -30,7 +30,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.1</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -23,7 +23,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter-engine.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
@ -44,7 +44,6 @@
</build>
<properties>
<junit-jupiter-engine.version>5.9.2</junit-jupiter-engine.version>
<spring-context.version>6.0.11</spring-context.version>
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
</properties>

View File

@ -44,7 +44,7 @@
<properties>
<commons.lang3.version>3.9</commons.lang3.version>
<junit-jupiter.version>5.8.1</junit-jupiter.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version> <!-- This module doesn't inherit from parent -->
</properties>
</project>

View File

@ -27,30 +27,30 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.jupiter.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit.jupiter.version}</version>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit.jupiter.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
@ -84,7 +84,6 @@
<properties>
<maven-compiler-plugin.version>3.12.1</maven-compiler-plugin.version>
<exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
<junit.jupiter.version>5.10.0</junit.jupiter.version>
<apache.maven.version>3.9.6</apache.maven.version>
<apache.maven.invoker.version>3.2.0</apache.maven.invoker.version>
</properties>

View File

@ -77,7 +77,6 @@
<properties>
<camel.version>4.3.0</camel.version>
<camel-swagger.version>3.22.0</camel-swagger.version>
<junit-jupiter.version>5.10.1</junit-jupiter.version> <!--Version not compatible with the one inherited from parent-->
<spring-boot.repackage.skip>true</spring-boot.repackage.skip> <!--Skip repackaging for multiple main classes-->
</properties>

View File

@ -85,7 +85,6 @@
<maven-war-plugin.version>3.3.2</maven-war-plugin.version>
<activemq-junit.version>5.16.5</activemq-junit.version>
<testcontainers.version>1.17.3</testcontainers.version>
<junit-jupiter.version>5.10.1</junit-jupiter.version>
</properties>
</project>

View File

@ -230,7 +230,6 @@
<maven-resources-plugin.version>3.3.0</maven-resources-plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<spring-boot.version>3.1.5</spring-boot.version>
<junit-jupiter.version>5.8.2</junit-jupiter.version>
<native-build-tools-plugin.version>0.9.17</native-build-tools-plugin.version>
</properties>

View File

@ -72,7 +72,6 @@
<hibernate.version>6.4.2.Final</hibernate.version>
<spring-boot.version>3.2.2</spring-boot.version>
<spring-test.version>6.0.16</spring-test.version>
<junit-jupiter.version>5.8.2</junit-jupiter.version>
<h2.version>2.1.214</h2.version>
</properties>

View File

@ -81,7 +81,6 @@
<properties>
<spring.boot.dependencies>3.2.2</spring.boot.dependencies>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<db.util.version>1.0.7</db.util.version>

View File

@ -68,13 +68,13 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
@ -102,7 +102,6 @@
<org.springframework.data.version>4.1.9</org.springframework.data.version>
<testcontainers.version>1.19.5</testcontainers.version>
<system.stubs.version>2.1.5</system.stubs.version>
<junit.jupiter.version>5.9.3</junit.jupiter.version>
<start-class>org.baeldung.springcassandra.SpringCassandraApplication</start-class>
</properties>

View File

@ -92,7 +92,6 @@
<embedded-redis.version>0.6</embedded-redis.version>
<jedis.version>5.1.2</jedis.version>
<spring-boot.version>3.2.0</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<start-class>com.baeldung.spring.data.redis.SpringRedisApplication</start-class>
</properties>

View File

@ -49,7 +49,6 @@
</build>
<properties>
<junit-jupiter.version>5.10.0</junit-jupiter.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot.version>3.2.4</spring-boot.version> <!-- Requires at least spring framework version 6.1.X to work -->
</properties>

View File

@ -1179,7 +1179,7 @@
<jackson.version>2.16.1</jackson.version>
<commons-fileupload.version>1.5</commons-fileupload.version>
<junit-platform.version>1.9.2</junit-platform.version>
<junit-jupiter.version>5.9.2</junit-jupiter.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<junit-platform-surefire-provider.version>1.3.2</junit-platform-surefire-provider.version>
<directory-maven-plugin.version>1.0</directory-maven-plugin.version>
<maven-install-plugin.version>3.1.1</maven-install-plugin.version>
@ -1191,7 +1191,7 @@
<h2.version>2.2.224</h2.version>
<guava.version>33.0.0-jre</guava.version>
<maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
<mockito-junit-jupiter.version>5.11.0</mockito-junit-jupiter.version>
<logback.configurationFileName>logback-config-global.xml</logback.configurationFileName>
</properties>

View File

@ -131,6 +131,7 @@
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>3.9.4</quarkus.platform.version>
<surefire-plugin.version>3.0.0-M7</surefire-plugin.version>
<junit-jupiter.version>5.7.2</junit-jupiter.version> <!-- Latest version not compatible. Maybe old quarkus version -->
</properties>
</project>

View File

@ -101,7 +101,6 @@
<mockwebserver.version>5.0.0-alpha.12</mockwebserver.version>
<spring-boot.repackage.skip>true</spring-boot.repackage.skip>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
</properties>
</project>

View File

@ -105,7 +105,6 @@
<kotlin-stdlib.version>2.0.0-Beta4</kotlin-stdlib.version>
<spring-boot.repackage.skip>true</spring-boot.repackage.skip>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
</properties>
</project>

View File

@ -88,7 +88,6 @@
<spring-batch-core.version>5.1.1</spring-batch-core.version>
<start-class>com.baeldung.batchtesting.SpringBatchApplication</start-class>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
</properties>
</project>

View File

@ -43,22 +43,22 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${jupiter.version}</version>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${jupiter.version}</version>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${jupiter.version}</version>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${jupiter.version}</version>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
@ -213,7 +213,6 @@
<mockserver.version>5.14.0</mockserver.version>
<spring-boot.version>3.2.4</spring-boot.version>
<lombok-mapstruct-binding.version>0.2.0</lombok-mapstruct-binding.version>
<jupiter.version>5.10.0</jupiter.version>
<springdoc-openapi-webmvc-ui.version>2.5.0</springdoc-openapi-webmvc-ui.version>
</properties>

View File

@ -12,6 +12,10 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
<properties>
<junit-jupiter.version>5.9.3</junit-jupiter.version> <!-- Latest compatible library. NamespacedHierarchicalStore was extracted starting from 5.10.x. So, fails to compile.-->
</properties>
</project>

View File

@ -158,7 +158,6 @@
<properties>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version>
<javafx.version>19</javafx.version>
<start-class>com.baeldung.SpringBootDataApplication</start-class>

View File

@ -104,7 +104,6 @@
<jstl.version>1.2</jstl.version>
<spring-boot.version>3.2.2</spring-boot.version>
<commons-text.version>1.10.0</commons-text.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
</properties>
</project>

View File

@ -85,7 +85,6 @@
<xstream.version>1.4.11.1</xstream.version>
<rest-assured-version>5.4.0</rest-assured-version>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
</properties>
</project>

View File

@ -70,7 +70,6 @@
<properties>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<spring.fox.version>3.0.0</spring.fox.version>
<start-class>com.baeldung.springboot.swagger.ArticleApplication</start-class>
<spring-cloud.version>2023.0.0</spring-cloud.version>

View File

@ -149,7 +149,6 @@
<!-- <start-class>com.baeldung.buildproperties.Application</start-class> -->
<start-class>com.baeldung.yaml.MyApplication</start-class>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
</properties>
</project>

View File

@ -24,7 +24,6 @@
<properties>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<spring-cloud-starter-gateway.version>4.1.1</spring-cloud-starter-gateway.version>
<start-class>com.baeldung.springcloudgateway.introduction.IntroductionGatewayApplication</start-class>
</properties>

View File

@ -107,7 +107,6 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<wiremock.version>3.3.1</wiremock.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<testcontainers.version>1.17.3</testcontainers.version>
</properties>

View File

@ -41,6 +41,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -86,7 +86,6 @@
<spring-cloud-starter-stream.version>2.1.2.RELEASE</spring-cloud-starter-stream.version>
<!-- used only in dependency management to force this version, not included as a direct dependency -->
<junit.version>4.13.2</junit.version>
<junit-jupiter.version>5.8.1</junit-jupiter.version>
<log4j2.version>2.17.1</log4j2.version>
<groovy.version>3.0.8</groovy.version>
</properties>

View File

@ -89,7 +89,6 @@
<properties>
<spring-kafka.version>3.1.2</spring-kafka.version>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
</properties>
</project>

View File

@ -71,6 +71,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -63,7 +63,6 @@
<properties>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
<maven.compiler.release>17</maven.compiler.release>
</properties>

View File

@ -268,7 +268,6 @@
<jackson-databind-nullable.version>0.2.1</jackson-databind-nullable.version>
<jackson-threetenbp.version>2.15.2</jackson-threetenbp.version>
<maven-plugin.version>1.0.0</maven-plugin.version>
<junit-jupiter.version>5.8.1</junit-jupiter.version>
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
<maven-enforcer-plugin.version>3.0.0-M1</maven-enforcer-plugin.version>

View File

@ -31,7 +31,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.engine.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
@ -43,13 +43,13 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.engine.version}</version>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
@ -76,6 +76,7 @@
<file.encoding>UTF-8</file.encoding>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<mockito.version>5.3.1</mockito.version>
<junit.jupiter.engine.version>5.9.3</junit.jupiter.engine.version>
<thymeleaf.spring6.version>3.1.1.RELEASE</thymeleaf.spring6.version>
<spring.boot.starter.thymeleaf>3.1.1</spring.boot.starter.thymeleaf>

View File

@ -45,13 +45,12 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<instancio.version>2.9.0</instancio.version>
<junit-jupiter.version>5.9.2</junit-jupiter.version>
</properties>
</project>

View File

@ -80,7 +80,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
@ -89,6 +89,11 @@
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
@ -130,7 +135,8 @@
<log4j2.version>2.17.1</log4j2.version>
<powermock.version>2.0.9</powermock.version>
<spring.version>5.0.1.RELEASE</spring.version>
<mockito.version>3.3.0</mockito.version> <!-- Cannot Upgrade to recent versions. Powermock doesn't support it -->
<mockito.version>3.3.0</mockito.version>
<mockito-junit-jupiter.version>5.11.0</mockito-junit-jupiter.version>
</properties>
</project>

View File

@ -46,7 +46,6 @@
<properties>
<junit-platform.version>1.10.0</junit-platform.version>
<junit-jupiter.version>5.10.0</junit-jupiter.version>
<log4j2.version>2.19.0</log4j2.version>
</properties>

View File

@ -43,4 +43,8 @@
</resources>
</build>
<properties>
<junit-jupiter.version>5.9.3</junit-jupiter.version> <!-- Latest compatible library. NamespacedHierarchicalStore was extracted starting from 5.10.x. So, fails to compile.-->
</properties>
</project>

View File

@ -21,7 +21,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -43,7 +43,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -23,7 +23,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<version>${mockito-junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -147,7 +147,6 @@
<javax.persistence.version>2.1.1</javax.persistence.version>
<spring-boot.repackage.skip>true</spring-boot.repackage.skip>
<spring-boot.version>3.2.2</spring-boot.version>
<junit-jupiter.version>5.10.2</junit-jupiter.version>
</properties>
</project>

View File

@ -220,7 +220,6 @@
<enforcer.plugin.version>1.3.1</enforcer.plugin.version>
<deploy.plugin.version>2.8.2</deploy.plugin.version>
<shade.plugin.version>2.2</shade.plugin.version>
<junit-jupiter.version>5.8.1</junit-jupiter.version>
</properties>
</project>