Skip to content

Introduce AopTestUtils in spring-test [SPR-13005] #17597

@spring-projects-issues

Description

@spring-projects-issues

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

  1. Introduce support in the spring-test module for retrieving the ultimate target object behind a proxy.

Issue Links:

Referenced from: commits cf51f0c, efe3a35

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions