From 63f7c75b61d521f4e84a939f74c65344c4d80cd7 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 6 Aug 2020 13:34:01 +0100 Subject: [PATCH] Polish --- .../src/main/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 0a6ea49143..7d24e878a4 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -6287,7 +6287,7 @@ TIP: If you are using `@SpyBean` to spy on a bean with `@Cacheable` methods that This ensures that the parameter names are available to the caching infrastructure once the bean has been spied upon. TIP: When you are using `@SpyBean` to spy on a bean that is proxied by Spring, you may need to remove Spring's proxy in some situations, for example when setting expectations using `given` or `when`. -Use `AopTestUtils.getTargetProxy(yourProxiedSpy)` to do so. +Use `AopTestUtils.getTargetObject(yourProxiedSpy)` to do so.