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

@ConfigProperty without @Inject does not work in test #2061

Closed
nilshartmann opened this issue Apr 14, 2019 · 1 comment · Fixed by #2062
Closed

@ConfigProperty without @Inject does not work in test #2061

nilshartmann opened this issue Apr 14, 2019 · 1 comment · Fixed by #2062
Labels
kind/enhancement New feature or request
Milestone

Comments

@nilshartmann
Copy link
Contributor

In the "Application Configuration Guide" it says:

The @Inject annotation is not necessary for members annotated with @ConfigProperty, a behavior which differs from MicroProfile Config

While this works in Beans, it does not work in @QuarkusTests. In my test case I have to add @Inject to @ConfigProperty to get access to a configuration property. Is this different behaviour intended? Then it could be helpful to add a note in the documentation.

@geoand
Copy link
Contributor

geoand commented Apr 14, 2019

@nilshartmann I opened a PR that fixes the issue, thanks for bringing this to our attention!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants