camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/8] camel git commit: CAMEL-10385: fix checkstyle errors
Date Fri, 14 Oct 2016 08:14:02 GMT
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 <xhub4u@gmail.com>
Authored: Thu Oct 13 09:44:17 2016 -0400
Committer: Claus Ibsen <davsclaus@apache.org>
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<String> list = new ArrayList<String>();
 		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");
+				}
+			};
+		}
+	}
 }


Mime
View raw message