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

Add a @MockBean annotation to automatically mock and reset beans in tests #1157

Open
arteymix opened this issue Jun 21, 2024 · 0 comments
Open
Labels
enhancement Enhance the code or user experience low priority

Comments

@arteymix
Copy link
Member

Spring Boot provide this feature to reduce the amount of boilerplate necessary in tests.

This can be implemented with a text execution listener that discovers mock beans and register them in the context.

@arteymix arteymix added enhancement Enhance the code or user experience low priority labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance the code or user experience low priority
Projects
None yet
Development

No branches or pull requests

1 participant