This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch 3.27.x in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 868d9bb66f7789c6613186428eb21c3abbe0e899 Author: James Netherton <[email protected]> AuthorDate: Wed Jul 22 13:49:15 2026 +0100 Fix FHIR native build warning ClassNotFoundException: com.google.protobuf.JavaFeaturesProto --- .../quarkus/component/fhir/it/util/FhirTestHelper.java | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/integration-tests/fhir/src/test/java/org/apache/camel/quarkus/component/fhir/it/util/FhirTestHelper.java b/integration-tests/fhir/src/test/java/org/apache/camel/quarkus/component/fhir/it/util/FhirTestHelper.java index aad2b640cf..7943b8ba74 100644 --- a/integration-tests/fhir/src/test/java/org/apache/camel/quarkus/component/fhir/it/util/FhirTestHelper.java +++ b/integration-tests/fhir/src/test/java/org/apache/camel/quarkus/component/fhir/it/util/FhirTestHelper.java @@ -16,10 +16,7 @@ */ package org.apache.camel.quarkus.component.fhir.it.util; -import java.io.IOException; -import java.util.Properties; - -import org.apache.camel.quarkus.component.fhir.it.AbstractFhirRouteBuilder; +import org.eclipse.microprofile.config.ConfigProvider; public final class FhirTestHelper { @@ -28,15 +25,7 @@ public final class FhirTestHelper { } public static boolean isFhirVersionEnabled(String version) { - try { - Properties properties = new Properties(); - properties.load(AbstractFhirRouteBuilder.class.getResourceAsStream("/application.properties")); - String key = "quarkus.camel.fhir.enable-" + version.toLowerCase(); - String envKey = key.toUpperCase().replace('.', '_'); - String value = (String) properties.getOrDefault(key, System.getProperty(key, System.getenv(envKey))); - return Boolean.valueOf(value); - } catch (IOException e) { - throw new RuntimeException(e); - } + String key = "quarkus.camel.fhir.enable-" + version.toLowerCase(); + return ConfigProvider.getConfig().getOptionalValue(key, Boolean.class).orElse(false); } }
