You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2014/08/28 14:32:34 UTC
git commit: Extend unit test to include field search based on
type/customer. Remove predicate as it fails
Repository: camel
Updated Branches:
refs/heads/master 394c08712 -> d62717e51
Extend unit test to include field search based on type/customer. Remove predicate as it fails
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d62717e5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d62717e5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d62717e5
Branch: refs/heads/master
Commit: d62717e51aab8e344454dd92a0f91f875521c288
Parents: 394c087
Author: Charles Moulliard <ch...@gmail.com>
Authored: Thu Aug 28 14:32:21 2014 +0200
Committer: Charles Moulliard <ch...@gmail.com>
Committed: Thu Aug 28 14:32:21 2014 +0200
----------------------------------------------------------------------
.../java/org/apache/camel/jsonpath/JsonPathLanguageTest.java | 1 +
components/camel-jsonpath/src/test/resources/type.json | 4 ++++
2 files changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/d62717e5/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathLanguageTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathLanguageTest.java b/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathLanguageTest.java
index a0d8a28..1522bc6 100644
--- a/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathLanguageTest.java
+++ b/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath/JsonPathLanguageTest.java
@@ -74,6 +74,7 @@ public class JsonPathLanguageTest extends CamelTestSupport {
@Test
public void testPredicate() throws Exception {
+ // Test books.json file
Exchange exchange = new DefaultExchange(context);
exchange.getIn().setBody(new File("src/test/resources/books.json"));
http://git-wip-us.apache.org/repos/asf/camel/blob/d62717e5/components/camel-jsonpath/src/test/resources/type.json
----------------------------------------------------------------------
diff --git a/components/camel-jsonpath/src/test/resources/type.json b/components/camel-jsonpath/src/test/resources/type.json
new file mode 100644
index 0000000..a2a75df
--- /dev/null
+++ b/components/camel-jsonpath/src/test/resources/type.json
@@ -0,0 +1,4 @@
+{
+ "kind": "full",
+ "type": "customer"
+}
\ No newline at end of file