Upgrade to JUnit Jupiter 5.5.0-RC1
This commit also removes the workaround that required to exclude junit 4 explicitly now that a related issue in JUnit Jupiter has been fixed. Closes gh-17266
This commit is contained in:
parent
59ca46ed54
commit
c9b8d98bcf
|
|
@ -136,7 +136,7 @@
|
||||||
<jstl.version>1.2</jstl.version>
|
<jstl.version>1.2</jstl.version>
|
||||||
<jtds.version>1.3.1</jtds.version>
|
<jtds.version>1.3.1</jtds.version>
|
||||||
<junit.version>4.12</junit.version>
|
<junit.version>4.12</junit.version>
|
||||||
<junit-jupiter.version>5.4.2</junit-jupiter.version>
|
<junit-jupiter.version>5.5.0-RC1</junit-jupiter.version>
|
||||||
<kafka.version>2.2.1</kafka.version>
|
<kafka.version>2.2.1</kafka.version>
|
||||||
<kotlin.version>1.3.31</kotlin.version>
|
<kotlin.version>1.3.31</kotlin.version>
|
||||||
<lettuce.version>5.1.7.RELEASE</lettuce.version>
|
<lettuce.version>5.1.7.RELEASE</lettuce.version>
|
||||||
|
|
|
||||||
|
|
@ -6934,9 +6934,9 @@ useful libraries.
|
||||||
|
|
||||||
[TIP]
|
[TIP]
|
||||||
====
|
====
|
||||||
The starter also brings the vintage engine and `junit:junit` so that you can run both
|
The starter also brings the vintage engine so that you can run both JUnit 4 and Junit 5
|
||||||
JUnit 4 and Junit 5 tests. If you have migrated your tests to JUnit 5, you should
|
tests. If you have migrated your tests to JUnit 5, you should exclude JUnit 4 support, as
|
||||||
exclude JUnit 4 support, as shown in the following example:
|
shown in the following example:
|
||||||
|
|
||||||
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
|
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
|
||||||
----
|
----
|
||||||
|
|
@ -6949,10 +6949,6 @@ exclude JUnit 4 support, as shown in the following example:
|
||||||
<groupId>org.junit.vintage</groupId>
|
<groupId>org.junit.vintage</groupId>
|
||||||
<artifactId>junit-vintage-engine</artifactId>
|
<artifactId>junit-vintage-engine</artifactId>
|
||||||
</exclusion>
|
</exclusion>
|
||||||
<exclusion>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
----
|
----
|
||||||
|
|
@ -9030,8 +9026,7 @@ makes it possible to use `@BeforeClass` and `@AfterClass` annotations on non-sta
|
||||||
methods, which is a good fit for Kotlin.
|
methods, which is a good fit for Kotlin.
|
||||||
|
|
||||||
JUnit 5 is the default and the vintage engine is provided for backward compatibility with
|
JUnit 5 is the default and the vintage engine is provided for backward compatibility with
|
||||||
JUnit 4. If you don't use it, exclude `org.junit.vintange:junit-vintage-engine` and
|
JUnit 4. If you don't use it, exclude `org.junit.vintange:junit-vintage-engine`. See the
|
||||||
`junit:junit`. See the
|
|
||||||
{junit5-documentation}/#dependency-metadata-junit-jupiter-samples[JUnit 5 documentation]
|
{junit5-documentation}/#dependency-metadata-junit-jupiter-samples[JUnit 5 documentation]
|
||||||
for more details. You also need to
|
for more details. You also need to
|
||||||
{junit5-documentation}/#writing-tests-test-instance-lifecycle-changing-default[switch test
|
{junit5-documentation}/#writing-tests-test-instance-lifecycle-changing-default[switch test
|
||||||
|
|
|
||||||
|
|
@ -49,16 +49,6 @@
|
||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>org.hamcrest</groupId>
|
|
||||||
<artifactId>hamcrest-core</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-junit-jupiter</artifactId>
|
<artifactId>mockito-junit-jupiter</artifactId>
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,6 @@
|
||||||
<groupId>org.junit.vintage</groupId>
|
<groupId>org.junit.vintage</groupId>
|
||||||
<artifactId>junit-vintage-engine</artifactId>
|
<artifactId>junit-vintage-engine</artifactId>
|
||||||
</exclusion>
|
</exclusion>
|
||||||
<exclusion>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue