-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Determine beanName just like what @MockBean
do
#10
Comments
I will look into it, and figure something out to make it work more like in spring. Right now bean name generation is based only on the field name. |
So something like this will do right? Will be released in 1.1.1 (sooner than latter ;)). Feel free to reopen if that's not what you've expected. |
@pchudzik I can confirm the issues has been fixed properly. |
Spring Boot's
@MockBean
determines beanName automatically:So that the mock will automatically override existing beans without raising
NoUniqueBeanDefinitionException
like:The text was updated successfully, but these errors were encountered: