Closed snowdrop-bot closed 3 years ago
I have a class that uses @ConfigProperties as shown below:
@ConfigProperties(prefix = "oidc") public class OIDCProperties { String serverUrl; String applicationRealm; String adminRealm; ....... }
I also tried with @Inject @ConfigProperty, as it is related to this issue: #2061
@Inject @ConfigProperty(name = "server-url") String serverUrl;
I have injected it following way to use those configs:
@Inject OIDCProperties oidcProperties;
It works as it should in the normal run, but in the test environment, I'm getting the injected oidcProperties as null.
In my application.properties, I have:
oidc.server-url=%{oidc_server_url:http://localhost:8180/auth}
Environment:
uname -a
ver
https://github.com/quarkusio/quarkus/issues/10735
$upstream:10735$
I have a class that uses @ConfigProperties as shown below:
I also tried with @Inject @ConfigProperty, as it is related to this issue: #2061
I have injected it following way to use those configs:
It works as it should in the normal run, but in the test environment, I'm getting the injected oidcProperties as null.
In my application.properties, I have:
Environment:
uname -a
orver
:https://github.com/quarkusio/quarkus/issues/10735
$upstream:10735$