Repository: camel Updated Branches: refs/heads/master 8a2e278a0 -> a6fce3d99
CAMEL-7693 Added an unit test for it Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a6fce3d9 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a6fce3d9 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a6fce3d9 Branch: refs/heads/master Commit: a6fce3d9977cfcc46aac3f66657502c3c5d85e73 Parents: 8a2e278 Author: Willem Jiang <willem.ji...@gmail.com> Authored: Thu Aug 14 18:20:44 2014 +0800 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Thu Aug 14 18:20:44 2014 +0800 ---------------------------------------------------------------------- .../properties/PropertiesComponentNestPropertiesTest.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/a6fce3d9/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentNestPropertiesTest.java ---------------------------------------------------------------------- diff --git a/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentNestPropertiesTest.java b/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentNestPropertiesTest.java index 0e334c6..aec9283 100644 --- a/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentNestPropertiesTest.java +++ b/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesComponentNestPropertiesTest.java @@ -47,13 +47,18 @@ public class PropertiesComponentNestPropertiesTest extends ContextTestSupport { public void configure() throws Exception { from("direct:start").setBody(simple("${properties:someproperty}${body}")) .to("mock:result"); + + from("direct:start2").setBody(simple("{json:{value:${properties:someproperty}}}")) + .to("mock:result2"); } }); context.start(); getMockEndpoint("mock:result").expectedBodiesReceived("junitTest"); + getMockEndpoint("mock:result2").expectedBodiesReceived("{json:{value:junit}}"); template.sendBody("direct:start", "Test"); + template.sendBody("direct:start2", "Test"); assertMockEndpointsSatisfied(); }