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/07/30 10:08:21 UTC

[camel] branch master updated: Added unit test based on camel idea tooling issue

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 4e32c38  Added unit test based on camel idea tooling issue
4e32c38 is described below

commit 4e32c389c3f7fd5fab628070e2a9a5f96a117f16
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jul 30 12:07:58 2020 +0200

    Added unit test based on camel idea tooling issue
---
 .../src/test/java/org/apache/camel/catalog/CamelCatalogTest.java      | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
index 7c8a0d6..8311ecc 100644
--- a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
+++ b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
@@ -1069,6 +1069,10 @@ public class CamelCatalogTest {
         result = catalog.validateLanguagePredicate(null, "foobar", "bar");
         assertFalse(result.isSuccess());
         assertEquals("Unknown language foobar", result.getError());
+
+        result = catalog.validateLanguagePredicate(null, "simple", "${body.length} =!= 12");
+        assertFalse(result.isSuccess());
+        assertEquals("Unexpected token =", result.getShortError());
     }
 
     @Test