camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lburgazz...@apache.org
Subject camel git commit: Fix CS
Date Sun, 15 Oct 2017 08:35:12 GMT
Repository: camel
Updated Branches:
  refs/heads/master b5d9464b0 -> 39afe71fc


Fix CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/39afe71f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/39afe71f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/39afe71f

Branch: refs/heads/master
Commit: 39afe71fc0183e8d97120e88ff952bf8811cd398
Parents: b5d9464
Author: lburgazzoli <lburgazzoli@gmail.com>
Authored: Sun Oct 15 10:34:32 2017 +0200
Committer: lburgazzoli <lburgazzoli@gmail.com>
Committed: Sun Oct 15 10:34:59 2017 +0200

----------------------------------------------------------------------
 .../camel/test/spring/CamelSpringBootExecutionListener.java    | 2 +-
 .../test/spring/CamelSpringDelegatingTestContextLoader.java    | 4 ++--
 .../apache/camel/test/spring/CamelSpringTestContextLoader.java | 2 +-
 .../apache/camel/test/spring/RouteCoverageEventNotifier.java   | 6 +++---
 .../spring/CamelSpringRouteProcessorDumpRouteCoverageTest.java | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/39afe71f/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootExecutionListener.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootExecutionListener.java
b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootExecutionListener.java
index 195f57d..fb4836f 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootExecutionListener.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootExecutionListener.java
@@ -67,7 +67,7 @@ public class CamelSpringBootExecutionListener extends AbstractTestExecutionListe
         System.clearProperty("skipStartingCamelContext");
 
         // route coverage need to know the test method
-        CamelAnnotationsHandler.handleRouteCoverage(context, testClass, (String) -> testName);
+        CamelAnnotationsHandler.handleRouteCoverage(context, testClass, s -> testName);
 
         LOG.info("Initialized CamelSpringBootRunner now ready to start CamelContext");
         CamelAnnotationsHandler.handleCamelContextStartup(context, testClass);

http://git-wip-us.apache.org/repos/asf/camel/blob/39afe71f/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
index aa76c15..b01c2d2 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringDelegatingTestContextLoader.java
@@ -79,7 +79,7 @@ public class CamelSpringDelegatingTestContextLoader extends DelegatingSmartConte
         AnnotationConfigUtils.registerAnnotationConfigProcessors((BeanDefinitionRegistry)
context);
 
         // Post CamelContext(s) instantiation but pre CamelContext(s) start setup
-        CamelAnnotationsHandler.handleRouteCoverage(context, testClass, (String) -> getTestMethod().getName());
+        CamelAnnotationsHandler.handleRouteCoverage(context, testClass, s -> getTestMethod().getName());
         CamelAnnotationsHandler.handleProvidesBreakpoint(context, testClass);
         CamelAnnotationsHandler.handleShutdownTimeout(context, testClass);
         CamelAnnotationsHandler.handleMockEndpoints(context, testClass);
@@ -132,4 +132,4 @@ public class CamelSpringDelegatingTestContextLoader extends DelegatingSmartConte
         return CamelSpringTestHelper.getTestMethod();
     }
 
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/camel/blob/39afe71f/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringTestContextLoader.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringTestContextLoader.java
b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringTestContextLoader.java
index 049bc7c..583ebca 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringTestContextLoader.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringTestContextLoader.java
@@ -291,7 +291,7 @@ public class CamelSpringTestContextLoader extends AbstractContextLoader
{
                 @Override
                 public void execute(String contextName, SpringCamelContext camelContext)
throws Exception {
                     LOG.info("Enabling RouteCoverage");
-                    EventNotifier notifier = new RouteCoverageEventNotifier(testClass.getName(),
(String) -> getTestMethod().getName());
+                    EventNotifier notifier = new RouteCoverageEventNotifier(testClass.getName(),
s -> getTestMethod().getName());
                     camelContext.addService(notifier, true);
                     camelContext.getManagementStrategy().addEventNotifier(notifier);
                 }

http://git-wip-us.apache.org/repos/asf/camel/blob/39afe71f/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/RouteCoverageEventNotifier.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/RouteCoverageEventNotifier.java
b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/RouteCoverageEventNotifier.java
index 17b7064..88b9de0 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/RouteCoverageEventNotifier.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/RouteCoverageEventNotifier.java
@@ -5,9 +5,9 @@
  * 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
- * <p>
- * http://www.apache.org/licenses/LICENSE-2.0
- * <p>
+ *
+ *      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.

http://git-wip-us.apache.org/repos/asf/camel/blob/39afe71f/components/camel-test-spring/src/test/java/org/apache/camel/test/spring/CamelSpringRouteProcessorDumpRouteCoverageTest.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/test/java/org/apache/camel/test/spring/CamelSpringRouteProcessorDumpRouteCoverageTest.java
b/components/camel-test-spring/src/test/java/org/apache/camel/test/spring/CamelSpringRouteProcessorDumpRouteCoverageTest.java
index 9374d2f..307bb01 100644
--- a/components/camel-test-spring/src/test/java/org/apache/camel/test/spring/CamelSpringRouteProcessorDumpRouteCoverageTest.java
+++ b/components/camel-test-spring/src/test/java/org/apache/camel/test/spring/CamelSpringRouteProcessorDumpRouteCoverageTest.java
@@ -42,7 +42,7 @@ public class CamelSpringRouteProcessorDumpRouteCoverageTest extends CamelSpringR
     }
 
     @Override
-    public void testRouteCoverage() throws Exception{
+    public void testRouteCoverage() throws Exception {
         camelContext.stop();
         camelContext2.stop();
 


Mime
View raw message