When using @MockitoBean
and @MockitoSpyBean
make it easier to inject any underlying proxy target as well as the mock or spy
#33743
Labels
in: test
Issues in the test module
status: pending-design-work
Needs design work before any code can be developed
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
We'd like to support something like this:
ProxiedBean
would then provide accessors for the bean both with and without all of its Spring proxies. This should make it easier to bypass any caching or advice when, for example, setting expectations, while having them in place when exercising the service.Hopefully this will address spring-projects/spring-boot#22281 by providing a nicer API that can be used in place of
AopTestUtils.getTargetObject(service)
.The text was updated successfully, but these errors were encountered: