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 ed35e63  CAMEL-14538: camel-core - Do not load type converters via 
package scanning by default
ed35e63 is described below

commit ed35e63140a3d53168d6c704f75129774fa6a4ef
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Feb 13 06:03:20 2020 +0100

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

diff --git 
a/tests/camel-typeconverterscan-test/src/test/java/org/apache/camel/tests/typeconverterscan/RouteTest.java
 
b/tests/camel-typeconverterscan-test/src/test/java/org/apache/camel/tests/typeconverterscan/RouteTest.java
index b5c6a01..02ea387 100644
--- 
a/tests/camel-typeconverterscan-test/src/test/java/org/apache/camel/tests/typeconverterscan/RouteTest.java
+++ 
b/tests/camel-typeconverterscan-test/src/test/java/org/apache/camel/tests/typeconverterscan/RouteTest.java
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.tests.typeconverterscan;
 
+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);

Reply via email to