This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit e7d2479f88d4d46185cc6632969ae243024da6a7 Author: James Netherton <[email protected]> AuthorDate: Thu Aug 18 10:58:32 2022 +0100 Temporarily work around map style configuration property resolution due to #4011 --- .../java/org/apache/camel/quarkus/core/CoreThreadPoolsTest.java | 2 ++ .../java/org/apache/camel/quarkus/component/jq/it/JqRoutes.java | 8 ++++++++ integration-tests/jq/src/main/resources/application.properties | 6 ++++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/integration-test-groups/foundation/core-thread-pools/src/test/java/org/apache/camel/quarkus/core/CoreThreadPoolsTest.java b/integration-test-groups/foundation/core-thread-pools/src/test/java/org/apache/camel/quarkus/core/CoreThreadPoolsTest.java index 959bf9fd5e..3375f166fb 100644 --- a/integration-test-groups/foundation/core-thread-pools/src/test/java/org/apache/camel/quarkus/core/CoreThreadPoolsTest.java +++ b/integration-test-groups/foundation/core-thread-pools/src/test/java/org/apache/camel/quarkus/core/CoreThreadPoolsTest.java @@ -16,6 +16,7 @@ */ package org.apache.camel.quarkus.core; +import io.quarkus.test.junit.DisabledOnIntegrationTest; import io.quarkus.test.junit.QuarkusTest; import org.junit.jupiter.api.Test; @@ -30,6 +31,7 @@ public class CoreThreadPoolsTest { get("/core/thread-pools/default").then().body(is("default|true|5|10|20|DiscardOldest")); } + @DisabledOnIntegrationTest("https://github.com/apache/camel-quarkus/issues/4011") @Test public void testCustomThreadPoolsConfiguredByProperties() { get("/core/thread-pools/customPool").then().body(is("customPool|false|1|10|20|Abort")); diff --git a/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqRoutes.java b/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqRoutes.java index 18589c84f8..2fa69f5961 100644 --- a/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqRoutes.java +++ b/integration-tests/jq/src/main/java/org/apache/camel/quarkus/component/jq/it/JqRoutes.java @@ -16,12 +16,20 @@ */ package org.apache.camel.quarkus.component.jq.it; +import java.util.Map; + import org.apache.camel.builder.RouteBuilder; public class JqRoutes extends RouteBuilder { @Override public void configure() throws Exception { + // TODO: Revert back to using config properties + // https://github.com/apache/camel-quarkus/issues/4011 + Map<String, String> globalOptions = getContext().getGlobalOptions(); + globalOptions.put("CamelJacksonEnableTypeConverter", "true"); + globalOptions.put("CamelJacksonTypeConverterToPojo", "true"); + from("direct:expression") .transform().jq(".foo") .to("mock:expression"); diff --git a/integration-tests/jq/src/main/resources/application.properties b/integration-tests/jq/src/main/resources/application.properties index 26d93d354f..98686c9447 100644 --- a/integration-tests/jq/src/main/resources/application.properties +++ b/integration-tests/jq/src/main/resources/application.properties @@ -14,5 +14,7 @@ ## See the License for the specific language governing permissions and ## limitations under the License. ## --------------------------------------------------------------------------- -camel.context.global-options[CamelJacksonEnableTypeConverter] = true -camel.context.global-options[CamelJacksonTypeConverterToPojo] = true + +# https://github.com/apache/camel-quarkus/issues/4011 +#camel.context.global-options[CamelJacksonEnableTypeConverter] = true +#camel.context.global-options[CamelJacksonTypeConverterToPojo] = true
