-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A @SpyBean on the output of a FactoryBean is not reset #31204
Comments
Thanks for the sample, @nightswimmings. As far as I can tell, the problem is broader than proxied Spring Data
|
* the publishRegistry element has to be configured via a combination of maven command line arguments and maven variables in the pom
Just chiming in to note that this is what's done for Spring Framework 6.2's |
Moved to 3.3.x to avoid potentially destabilising 3.2.x before its final OSS release. |
Repository SpyBeans seem to keep stubs when context is reused on other test class, since 2.6.x up to 2.7.0, at least
This does not seem to happen with regular beans (i.e, not JPA proxies Repository interfaces), and it seems caused by MockReset.get(bean) not returning AFTER in objectResetMocksTestExecutionListener.resetMocks, when it should. It returns NONE because SpringBootMockResolver does not find the target, apparently
test.zip
.
The text was updated successfully, but these errors were encountered: