Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1B05B200BB2 for ; Fri, 14 Oct 2016 10:14:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 19B28160AD9; Fri, 14 Oct 2016 08:14:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 67C4A160ADD for ; Fri, 14 Oct 2016 10:14:08 +0200 (CEST) Received: (qmail 33870 invoked by uid 500); 14 Oct 2016 08:14:02 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 33794 invoked by uid 99); 14 Oct 2016 08:14:02 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 08:14:02 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D3D9CDFD4C; Fri, 14 Oct 2016 08:14:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Fri, 14 Oct 2016 08:14:02 -0000 Message-Id: <9cca03dce2754eb6a28a0b818e76fcb5@git.apache.org> In-Reply-To: <222bbe9e4ac94510b1eb545260c57c59@git.apache.org> References: <222bbe9e4ac94510b1eb545260c57c59@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/8] camel git commit: CAMEL-10385: fix checkstyle errors archived-at: Fri, 14 Oct 2016 08:14:09 -0000 CAMEL-10385: fix checkstyle errors Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9ae7ebea Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9ae7ebea Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9ae7ebea Branch: refs/heads/camel-2.18.x Commit: 9ae7ebea7d9f6c0723b9d44057b937bf83b65e16 Parents: dc64003 Author: dmitriy Authored: Thu Oct 13 09:44:17 2016 -0400 Committer: Claus Ibsen Committed: Fri Oct 14 09:32:47 2016 +0200 ---------------------------------------------------------------------- .../spring/boot/issues/SimpleOgnlTest.java | 66 ++++++++++++-------- 1 file changed, 41 insertions(+), 25 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/9ae7ebea/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java index 99fcd66..969ad50 100644 --- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java +++ b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.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.spring.boot.issues; import java.util.ArrayList; @@ -18,36 +34,36 @@ import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @EnableAutoConfiguration -@SpringBootTest(classes = {SimpleOgnlTest.class}) +@SpringBootTest(classes = { SimpleOgnlTest.class }) public class SimpleOgnlTest { @EndpointInject(uri = "mock:result") - protected MockEndpoint resultEndpoint; - - @Produce(uri = "direct:start") - protected ProducerTemplate template; - + protected MockEndpoint resultEndpoint; + + @Produce(uri = "direct:start") + protected ProducerTemplate template; + @Test - public void testSimpleOgnlListExpression() throws Exception { + public void testSimpleOgnlListExpression() throws Exception { List list = new ArrayList(); list.add("one"); list.add("two"); - - resultEndpoint.expectedBodiesReceived(list.get(0)); - - template.sendBody(list); - - resultEndpoint.assertIsSatisfied(); - } - + + resultEndpoint.expectedBodiesReceived(list.get(0)); + + template.sendBody(list); + + resultEndpoint.assertIsSatisfied(); + } + @Configuration - public static class ContextConfig { - @Bean - public RouteBuilder route() { - return new RouteBuilder() { - public void configure() { - from("direct:start").setBody(simple("${body[0]}")).to("mock:result"); - } - }; - } - } + public static class ContextConfig { + @Bean + public RouteBuilder route() { + return new RouteBuilder() { + public void configure() { + from("direct:start").setBody(simple("${body[0]}")).to("mock:result"); + } + }; + } + } }