Browse Source

Fix links to JUnit User Guide

Closes gh-36217

(cherry picked from commit ba47dd0714)
6.2.x
Sam Brannen 5 days ago
parent
commit
103057de2a
  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
xref:appendix.adoc#appendix-spring-properties[`SpringProperties`] mechanism. xref:appendix.adoc#appendix-spring-properties[`SpringProperties`] mechanism.
The default mode may also be configured as a 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 If the `spring.test.constructor.autowire.mode` property is not set, test class
constructors will not be automatically autowired. constructors will not be automatically autowired.

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

@ -22,7 +22,7 @@ TestNG:
* Dependency injection for test constructors, test methods, and test lifecycle callback * 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 methods. See xref:testing/testcontext-framework/support-classes.adoc#testcontext-junit-jupiter-di[Dependency
Injection with the `SpringExtension`] for further details. 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, test execution] based on SpEL expressions, environment variables, system properties,
and so on. See the documentation for `@EnabledIf` and `@DisabledIf` in and so on. See the documentation for `@EnabledIf` and `@DisabledIf` in
xref:testing/annotations/integration-junit-jupiter.adoc[Spring JUnit Jupiter Testing Annotations] xref:testing/annotations/integration-junit-jupiter.adoc[Spring JUnit Jupiter Testing Annotations]
@ -160,7 +160,7 @@ for further details.
=== Dependency Injection with the `SpringExtension` === Dependency Injection with the `SpringExtension`
The `SpringExtension` implements the 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 extension API from JUnit Jupiter, which lets Spring provide dependency injection for test
constructors, test methods, and test lifecycle callback methods. constructors, test methods, and test lifecycle callback methods.

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

@ -91,7 +91,7 @@ public @interface TestConstructor {
* {@link org.springframework.core.SpringProperties SpringProperties} * {@link org.springframework.core.SpringProperties SpringProperties}
* mechanism. * mechanism.
* <p>This property may also be configured as a * <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>. * Platform configuration parameter</a>.
* @see #autowireMode * @see #autowireMode
*/ */

Loading…
Cancel
Save