Merge branch '3.3.x'

Closes gh-43053
This commit is contained in:
Andy Wilkinson
2024-11-06 14:23:15 +00:00
2 changed files with 33 additions and 0 deletions

View File

@@ -336,6 +336,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;
}