Skip to content

Commit

Permalink
Restore tests that use map config style configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Sep 15, 2022
1 parent 8f9c8fd commit 31c29f6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
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 @@ -31,7 +30,6 @@ 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,20 +16,12 @@
*/
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 @@ -15,6 +15,5 @@
## limitations under the License.
## ---------------------------------------------------------------------------

# https://github.com/apache/camel-quarkus/issues/4011
#camel.context.global-options[CamelJacksonEnableTypeConverter] = true
#camel.context.global-options[CamelJacksonTypeConverterToPojo] = true
camel.context.global-options[CamelJacksonEnableTypeConverter] = true
camel.context.global-options[CamelJacksonTypeConverterToPojo] = true

0 comments on commit 31c29f6

Please sign in to comment.