You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/01/03 05:50:43 UTC

[camel] 04/07: CAMEL-14349: camel-core - Transformer and Validator registry should be on-demand

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

commit 101382e8b18123c963fae8eef95a5404e1a60dc1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jan 3 05:30:18 2020 +0100

    CAMEL-14349: camel-core - Transformer and Validator registry should be on-demand
---
 .../java/org/apache/camel/commands/ValidatorListCommandTest.java | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/ValidatorListCommandTest.java b/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/ValidatorListCommandTest.java
index 7bafb93..aa1566b 100644
--- a/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/ValidatorListCommandTest.java
+++ b/platforms/commands/commands-core/src/test/java/org/apache/camel/commands/ValidatorListCommandTest.java
@@ -24,6 +24,7 @@ import org.apache.camel.CamelContext;
 import org.apache.camel.Message;
 import org.apache.camel.ValidationException;
 import org.apache.camel.builder.ExpressionBuilder;
+import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.impl.DefaultCamelContext;
 import org.apache.camel.impl.engine.ExplicitCamelContextNameStrategy;
 import org.apache.camel.model.Model;
@@ -88,6 +89,14 @@ public class ValidatorListCommandTest {
         context.setNameStrategy(new ExplicitCamelContextNameStrategy("foobar"));
         context.start();
 
+        context.addRoutes(new RouteBuilder() {
+            @Override
+            public void configure() throws Exception {
+                from("direct:foo")
+                        .to("mock:foo");
+            }
+        });
+
         CamelController controller = new DummyCamelController(context);
 
         OutputStream os = new ByteArrayOutputStream();