[camel] branch master updated: CAMEL-14538: camel-core - Do not load type converters via package scanning by default

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch master updated: CAMEL-14538: camel-core - Do not load type converters via package scanning by default

davsclaus-2
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 752f94a  CAMEL-14538: camel-core - Do not load type converters via package scanning by default
752f94a is described below

commit 752f94a1b3bf0e54fc6f32f0830ad8a6ef2669c9
Author: Claus Ibsen <[hidden email]>
AuthorDate: Thu Feb 13 06:00:58 2020 +0100

    CAMEL-14538: camel-core - Do not load type converters via package scanning by default
---
 .../java/org/apache/camel/tests/partialclasspath/RouteTest.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/camel-partial-classpath-test/src/test/java/org/apache/camel/tests/partialclasspath/RouteTest.java b/tests/camel-partial-classpath-test/src/test/java/org/apache/camel/tests/partialclasspath/RouteTest.java
index cf70641..87e385b 100644
--- a/tests/camel-partial-classpath-test/src/test/java/org/apache/camel/tests/partialclasspath/RouteTest.java
+++ b/tests/camel-partial-classpath-test/src/test/java/org/apache/camel/tests/partialclasspath/RouteTest.java
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.tests.partialclasspath;
 
+import org.apache.camel.CamelContext;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.test.junit4.CamelTestSupport;
@@ -23,6 +24,14 @@ import org.junit.Test;
 
 public class RouteTest extends CamelTestSupport {
 
+    @Override
+    protected CamelContext createCamelContext() throws Exception {
+        CamelContext context = super.createCamelContext();
+        // we use Camel 2.x style type converters
+        context.setLoadTypeConverters(true);
+        return context;
+    }
+
     @Test
     public void testRoute() throws Exception {
         MockEndpoint resultEndpoint = resolveMandatoryEndpoint("mock:result", MockEndpoint.class);