Skip to content

inject mocks by name #9

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

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

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

No branches or pull requests

1 participant