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

inject mocks by name #9

Closed
pchudzik opened this issue Aug 29, 2017 · 1 comment
Closed

inject mocks by name #9

pchudzik opened this issue Aug 29, 2017 · 1 comment

Comments

@pchudzik
Copy link
Owner

pchudzik commented Aug 29, 2017

see test case com.pchudzik.springmock.infrastructure.test.name.DoubleNameShouldBeUsedAsQualifier
it should be possible to inject different mocks without the @qualifier annotation

currently it fails with:
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.pchudzik.springmock.infrastructure.test.name.DoubleNameShouldBeUsedAsQualifier$MockService' available: expected single matching bean but found 2: mock1,mock2

@pchudzik
Copy link
Owner Author

pchudzik commented Aug 31, 2017

when it's implemented fix:
com.pchudzik.springmock.infrastructure.test.inject.ShouldReplaceBeansWithDoubles
com.pchudzik.springmock.infrastructure.test.inject.ShouldReplaceFactoryBeanWithDoubles

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant