Fixed CS
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b671ac5d Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b671ac5d Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b671ac5d Branch: refs/heads/master Commit: b671ac5d79c7db7ebdf05886541825435369534a Parents: 6b0b4f1 Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Jul 29 09:22:52 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Jul 29 09:22:52 2015 +0200 ---------------------------------------------------------------------- .../VelocitySupplementalContextTest.java | 25 ++++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/b671ac5d/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocitySupplementalContextTest.java ---------------------------------------------------------------------- diff --git a/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocitySupplementalContextTest.java b/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocitySupplementalContextTest.java index db7fdb5..22ae92f 100644 --- a/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocitySupplementalContextTest.java +++ b/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocitySupplementalContextTest.java @@ -1,3 +1,19 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.camel.component.velocity; import java.util.HashMap; @@ -28,8 +44,7 @@ public class VelocitySupplementalContextTest extends CamelTestSupport { Map<String, Object> headers = new HashMap<String, Object>(); headers.put(VelocityConstants.VELOCITY_TEMPLATE, - "#set( $headers.body = ${body} )\n" + - "#set( $headers['in.body'] = $in.body )\n" + "bar"); + "#set( $headers.body = ${body} )\n#set( $headers['in.body'] = $in.body )\n" + "bar"); inputEndpoint.sendBodyAndHeaders("old_body", headers); assertMockEndpointsSatisfied(); @@ -45,9 +60,9 @@ public class VelocitySupplementalContextTest extends CamelTestSupport { @Override public void configure() throws Exception { from("direct:input") - .setHeader(VelocityConstants.VELOCITY_SUPPLEMENTAL_CONTEXT).constant(supplementalContext) - .to("velocity:template-in-header") - .to("mock:results"); + .setHeader(VelocityConstants.VELOCITY_SUPPLEMENTAL_CONTEXT).constant(supplementalContext) + .to("velocity:template-in-header") + .to("mock:results"); } }; }