Skip to content

Commit a985c0b

Browse files
committed
Polishing: fix link fragments in test bean override annotation pages
1 parent e42c5ca commit a985c0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-mockitobean.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ but both annotations allow for a specific `name` to be provided. Each annotation
1111
defines Mockito-specific attributes to fine-tune the mocking details.
1212

1313
The `@MockitoBean` annotation uses the `REPLACE_OR_CREATE_DEFINITION`
14-
xref:testing/testcontext-framework/bean-overriding.adoc#spring-testing-beanoverriding-extending[strategy for test bean overriding].
14+
xref:testing/testcontext-framework/bean-overriding.adoc#testcontext-bean-overriding-custom[strategy for test bean overriding].
1515

1616
The `@MockitoSpyBean` annotation uses the `WRAP_BEAN`
17-
xref:testing/testcontext-framework/bean-overriding.adoc#spring-testing-beanoverriding-extending[strategy],
17+
xref:testing/testcontext-framework/bean-overriding.adoc#testcontext-bean-overriding-custom[strategy],
1818
and the original instance is wrapped in a Mockito spy.
1919

2020
The following example shows how to configure the bean name via `@MockitoBean` and

framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-testbean.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ By default, the bean name and the associated factory method name are derived fro
99
annotated field's name, but the annotation allows for specific values to be provided.
1010

1111
The `@TestBean` annotation uses the `REPLACE_DEFINITION`
12-
xref:testing/testcontext-framework/bean-overriding.adoc#spring-testing-beanoverriding-extending[strategy for test bean overriding].
12+
xref:testing/testcontext-framework/bean-overriding.adoc#testcontext-bean-overriding-custom[strategy for test bean overriding].
1313

1414
The following example shows how to fully configure the `@TestBean` annotation, with
1515
explicit values equivalent to the defaults:

0 commit comments

Comments
 (0)