Polishing: fix link fragments in test bean override annotation pages

This commit is contained in:
Simon Baslé 2024-04-18 14:54:57 +02:00
parent e42c5ca52b
commit a985c0bb35
2 changed files with 3 additions and 3 deletions

View File

@ -11,10 +11,10 @@ but both annotations allow for a specific `name` to be provided. Each annotation
defines Mockito-specific attributes to fine-tune the mocking details. defines Mockito-specific attributes to fine-tune the mocking details.
The `@MockitoBean` annotation uses the `REPLACE_OR_CREATE_DEFINITION` The `@MockitoBean` annotation uses the `REPLACE_OR_CREATE_DEFINITION`
xref:testing/testcontext-framework/bean-overriding.adoc#spring-testing-beanoverriding-extending[strategy for test bean overriding]. xref:testing/testcontext-framework/bean-overriding.adoc#testcontext-bean-overriding-custom[strategy for test bean overriding].
The `@MockitoSpyBean` annotation uses the `WRAP_BEAN` The `@MockitoSpyBean` annotation uses the `WRAP_BEAN`
xref:testing/testcontext-framework/bean-overriding.adoc#spring-testing-beanoverriding-extending[strategy], xref:testing/testcontext-framework/bean-overriding.adoc#testcontext-bean-overriding-custom[strategy],
and the original instance is wrapped in a Mockito spy. and the original instance is wrapped in a Mockito spy.
The following example shows how to configure the bean name via `@MockitoBean` and The following example shows how to configure the bean name via `@MockitoBean` and

View File

@ -9,7 +9,7 @@ By default, the bean name and the associated factory method name are derived fro
annotated field's name, but the annotation allows for specific values to be provided. annotated field's name, but the annotation allows for specific values to be provided.
The `@TestBean` annotation uses the `REPLACE_DEFINITION` The `@TestBean` annotation uses the `REPLACE_DEFINITION`
xref:testing/testcontext-framework/bean-overriding.adoc#spring-testing-beanoverriding-extending[strategy for test bean overriding]. xref:testing/testcontext-framework/bean-overriding.adoc#testcontext-bean-overriding-custom[strategy for test bean overriding].
The following example shows how to fully configure the `@TestBean` annotation, with The following example shows how to fully configure the `@TestBean` annotation, with
explicit values equivalent to the defaults: explicit values equivalent to the defaults: