Browse Source

Fix links to JUnit User Guide

Closes gh-36217
pull/36221/head
Sam Brannen 4 days ago
parent
commit
ba47dd0714
  1. 2
      framework-docs/modules/ROOT/pages/testing/annotations/integration-junit-jupiter.adoc
  2. 4
      framework-docs/modules/ROOT/pages/testing/testcontext-framework/support-classes.adoc
  3. 2
      spring-test/src/main/java/org/springframework/test/context/TestConstructor.java

2
framework-docs/modules/ROOT/pages/testing/annotations/integration-junit-jupiter.adoc

@ -187,7 +187,7 @@ default mode may be set via the @@ -187,7 +187,7 @@ default mode may be set via the
xref:appendix.adoc#appendix-spring-properties[`SpringProperties`] mechanism.
The default mode may also be configured as a
https://docs.junit.org/current/user-guide/#running-tests-config-params[JUnit Platform configuration parameter].
https://docs.junit.org/current/running-tests/configuration-parameters.html[JUnit Platform configuration parameter].
If the `spring.test.constructor.autowire.mode` property is not set, test class
constructors will not be automatically autowired.

4
framework-docs/modules/ROOT/pages/testing/testcontext-framework/support-classes.adoc

@ -25,7 +25,7 @@ TestNG: @@ -25,7 +25,7 @@ TestNG:
* Dependency injection for test constructors, test methods, and test lifecycle callback
methods. See xref:testing/testcontext-framework/support-classes.adoc#testcontext-junit-jupiter-di[Dependency
Injection with the `SpringExtension`] for further details.
* Powerful support for link:https://docs.junit.org/current/user-guide/#extensions-conditions[conditional
* Powerful support for link:https://docs.junit.org/current/extensions/conditional-test-execution.html[conditional
test execution] based on SpEL expressions, environment variables, system properties,
and so on. See the documentation for `@EnabledIf` and `@DisabledIf` in
xref:testing/annotations/integration-junit-jupiter.adoc[Spring JUnit Jupiter Testing Annotations]
@ -163,7 +163,7 @@ for further details. @@ -163,7 +163,7 @@ for further details.
=== Dependency Injection with the `SpringExtension`
The `SpringExtension` implements the
link:https://docs.junit.org/current/user-guide/#extensions-parameter-resolution[`ParameterResolver`]
link:https://docs.junit.org/current/extensions/parameter-resolution.html[`ParameterResolver`]
extension API from JUnit Jupiter, which lets Spring provide dependency injection for test
constructors, test methods, and test lifecycle callback methods.

2
spring-test/src/main/java/org/springframework/test/context/TestConstructor.java

@ -89,7 +89,7 @@ public @interface TestConstructor { @@ -89,7 +89,7 @@ public @interface TestConstructor {
* {@link org.springframework.core.SpringProperties SpringProperties}
* mechanism.
* <p>This property may also be configured as a
* <a href="https://junit.org/junit5/docs/current/user-guide/#running-tests-config-params">JUnit
* <a href="https://docs.junit.org/current/running-tests/configuration-parameters.html">JUnit
* Platform configuration parameter</a>.
* @see #autowireMode
*/

Loading…
Cancel
Save