Skip to content

Commit

Permalink
Update to SmallRye Config 1.8.4. This should fix quarkusio#10570 and q…
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jul 14, 2020
1 parent e86c231 commit 410bb67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bom/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<microprofile-opentracing-api.version>1.3.3</microprofile-opentracing-api.version>
<microprofile-reactive-streams-operators.version>1.0.1</microprofile-reactive-streams-operators.version>
<microprofile-rest-client.version>1.4.1</microprofile-rest-client.version>
<smallrye-config.version>1.8.1</smallrye-config.version>
<smallrye-config.version>1.8.4</smallrye-config.version>
<smallrye-health.version>2.2.2</smallrye-health.version>
<smallrye-metrics.version>2.4.2</smallrye-metrics.version>
<smallrye-open-api.version>2.0.2</smallrye-open-api.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static java.util.stream.Collectors.toList;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.util.HashMap;
Expand Down Expand Up @@ -171,7 +172,7 @@ public void expressions() {
try {
final SmallRyeConfig config = buildConfig("my.prop", "1", "%prof.my.prop", "${my.prop}");

assertEquals("1", config.getRawValue("my.prop"));
assertThrows(IllegalArgumentException.class, () -> config.getRawValue("my.prop"));
} finally {
System.clearProperty("quarkus-profile");
System.clearProperty("my.prop");
Expand Down

0 comments on commit 410bb67

Please sign in to comment.