-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Labels
kind/enhancement
New feature or request
Milestone
Comments
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Apr 14, 2019
@nilshartmann I opened a PR that fixes the issue, thanks for bringing this to our attention! |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Apr 14, 2019
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Apr 14, 2019
gsmet
added a commit
that referenced
this issue
Apr 15, 2019
Allow injection of config properties into test with @Inject
This was referenced Feb 14, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
@QuarkusTest
s. 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.The text was updated successfully, but these errors were encountered: