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
Since Spring Boot 1.4.0 @SpyBean can be used to spy on beans within the ApplicationContext. Unfortunately, Spring Data Reposity Beans seem to be added to the BeanFactory too late, for the MockitoPostProcessor to find the bean reference. Thus, it tries to add a new RootBeanDefinition for the spied Repository interface, which results in an instantiation error.
The text was updated successfully, but these errors were encountered:
Bug Report/Enhancement
Since Spring Boot 1.4.0 @SpyBean can be used to spy on beans within the ApplicationContext. Unfortunately, Spring Data Reposity Beans seem to be added to the BeanFactory too late, for the MockitoPostProcessor to find the bean reference. Thus, it tries to add a new RootBeanDefinition for the spied Repository interface, which results in an instantiation error.
The text was updated successfully, but these errors were encountered: