Fix resetting of spied FactoryBean output
Fixes gh-31204
This commit is contained in:
@@ -330,6 +330,7 @@ public class MockitoPostProcessor implements InstantiationAwareBeanPostProcessor
|
||||
SpyDefinition definition = this.spies.get(beanName);
|
||||
if (definition != null) {
|
||||
bean = definition.createSpy(beanName, bean);
|
||||
this.mockitoBeans.add(bean);
|
||||
}
|
||||
return bean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user