Deprecate JUnit 4 support in the TestContext framework

Closes gh-34794
This commit is contained in:
Sam Brannen
2025-04-26 08:53:24 +02:00
parent 2db1a63a92
commit c74fc7ec90
61 changed files with 215 additions and 65 deletions

View File

@@ -1,6 +1,13 @@
[[integration-testing-annotations-junit4]]
= Spring JUnit 4 Testing Annotations
[WARNING]
====
JUnit 4 support is deprecated since Spring Framework 7.0 in favor of the
xref:testing/testcontext-framework/support-classes.adoc#testcontext-junit-jupiter-extension[`SpringExtension`]
and JUnit Jupiter.
====
The following annotations are supported only when used in conjunction with the
xref:testing/testcontext-framework/support-classes.adoc#testcontext-junit4-runner[SpringRunner],
xref:testing/testcontext-framework/support-classes.adoc#testcontext-junit4-rules[Spring's JUnit 4 rules], or
@@ -206,6 +213,3 @@ Kotlin::
----
<1> Repeat this test ten times.
======