-
Couldn't load subscription status.
- Fork 38.8k
Closed
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement
Milestone
Description
Sam Brannen opened SPR-13005 and commented
Status Quo
AopProxyUtils provides for determining the ultimate target class for a proxied object via ultimateTargetClass(Object); however, there is currently no first-class support for determining the ultimate target object behind a proxy of set of nested proxies.
In testing scenarios it is sometimes necessary to obtain a reference to the underlying target object -- for example, to configure expectations on a mocked bean that was proxied by Spring.
Deliverables
- Introduce support in the
spring-testmodule for retrieving the ultimate target object behind a proxy.
Issue Links:
- Document AopTestUtils in the reference manual [SPR-13006] #17598 Document AopTestUtils in the reference manual ("is depended on by")
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement