Skip to content

Commit

Permalink
Temporarily work around map style configuration property resolution d…
Browse files Browse the repository at this point in the history
…ue to apache#4011
  • Loading branch information
jamesnetherton committed Aug 18, 2022
1 parent e442771 commit e369094
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -30,6 +31,7 @@ public void testDefaultThreadPoolConfiguredByProperties() {
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"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e369094

Please sign in to comment.