Skip to content
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

Document that @MockBean cannot be used to mock behaviour that's called during context refresh #16333

Closed
wilkinsona opened this issue Mar 27, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@wilkinsona
Copy link
Member

commented Mar 27, 2019

We should note in the documentation that @MockBean cannot be used to mock the behaviour of a bean that's exercised during application context refresh. It does not work as application context refresh has completed before the test gets a chance to configure the mocked behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.