You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/08/21 06:51:47 UTC

[camel] 03/03: CAMEL-13877 - Fixed CS

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 199715fd3872f2ef570b48215ce4ab5af06f57d5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Aug 21 08:51:05 2019 +0200

    CAMEL-13877 - Fixed CS
---
 .../camel/impl/health/RouteHealthCheckTest.java    | 50 ++++++++++++++--------
 1 file changed, 33 insertions(+), 17 deletions(-)

diff --git a/core/camel-core/src/test/java/org/apache/camel/impl/health/RouteHealthCheckTest.java b/core/camel-core/src/test/java/org/apache/camel/impl/health/RouteHealthCheckTest.java
index fd723bc..355bd28 100644
--- a/core/camel-core/src/test/java/org/apache/camel/impl/health/RouteHealthCheckTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/impl/health/RouteHealthCheckTest.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.impl.health;
 
 import java.util.Collections;
@@ -10,26 +26,26 @@ import org.junit.Test;
 
 public class RouteHealthCheckTest extends ContextTestSupport {
 
-	private static final String TEST_ROUTE_ID = "Test-Route";
+    private static final String TEST_ROUTE_ID = "Test-Route";
 
-	@Test
-	public void testDoCallDoesNotHaveNPEWhenJmxDisabled() {
-		Route route = context.getRoute(TEST_ROUTE_ID);
+    @Test
+    public void testDoCallDoesNotHaveNPEWhenJmxDisabled() {
+        Route route = context.getRoute(TEST_ROUTE_ID);
 
-		RouteHealthCheck healthCheck = new RouteHealthCheck(route);
-		final HealthCheckResultBuilder builder = HealthCheckResultBuilder.on(healthCheck);
+        RouteHealthCheck healthCheck = new RouteHealthCheck(route);
+        final HealthCheckResultBuilder builder = HealthCheckResultBuilder.on(healthCheck);
 
-		healthCheck.doCall(builder, Collections.emptyMap());
-	}
+        healthCheck.doCall(builder, Collections.emptyMap());
+    }
 
-	@Override
-	protected RouteBuilder createRouteBuilder() throws Exception {
-		return new RouteBuilder() {
-			@Override
-			public void configure() throws Exception {
-				from("direct:input").id(TEST_ROUTE_ID).log("Message");
-			}
-		};
-	}
+    @Override
+    protected RouteBuilder createRouteBuilder() throws Exception {
+        return new RouteBuilder() {
+            @Override
+            public void configure() throws Exception {
+                from("direct:input").id(TEST_ROUTE_ID).log("Message");
+            }
+        };
+    }
 
 }