You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SpringAopBypassingVerificationStartedListener provides partial support for transparent verification for Mockito spies created via @MockitoSpyBean when the spy is wrapped in a Spring AOP proxy.
However, the following @Disabled test currently fails since the AOP proxy for the DateService is not considered a mock by Mockito.
To provide transparent verification support for @MockitoSpyBean, we need to implement and register a Mockito MockResolver, analogous to the SpringBootMockResolver in Spring Boot.
Overview
SpringAopBypassingVerificationStartedListener
provides partial support for transparent verification for Mockito spies created via@MockitoSpyBean
when the spy is wrapped in a Spring AOP proxy.However, the following
@Disabled
test currently fails since the AOP proxy for theDateService
is not considered a mock by Mockito.spring-framework/spring-test/src/test/java/org/springframework/test/context/bean/override/mockito/MockitoSpyBeanAndAopProxyTests.java
Lines 88 to 117 in 982f7f8
To provide transparent verification support for
@MockitoSpyBean
, we need to implement and register a MockitoMockResolver
, analogous to theSpringBootMockResolver
in Spring Boot.Related Issues
The text was updated successfully, but these errors were encountered: