|
|
|
@ -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://junit.org/junit5/docs/current/user-guide/#extensions-conditions[conditional |
|
|
|
* Powerful support for link:https://docs.junit.org/current/user-guide/#extensions-conditions[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://junit.org/junit5/docs/current/user-guide/#extensions-parameter-resolution[`ParameterResolver`] |
|
|
|
link:https://docs.junit.org/current/user-guide/#extensions-parameter-resolution[`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. |
|
|
|
|
|
|
|
|
|
|
|
|