Fixed CS
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ba84da4a Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ba84da4a Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ba84da4a Branch: refs/heads/master Commit: ba84da4aba0a7d0cb185b95f3049adf9842ed5fc Parents: e0baf2b Author: Claus Ibsen <[email protected]> Authored: Wed Nov 11 08:18:22 2015 +0100 Committer: Claus Ibsen <[email protected]> Committed: Wed Nov 11 08:18:22 2015 +0100 ---------------------------------------------------------------------- .../java/org/apache/camel/spring/boot/RoutesCollector.java | 2 +- .../spring/boot/parent/SpringBootRefreshContextTest.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/ba84da4a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java index e864707..33d479b 100644 --- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java +++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java @@ -56,7 +56,7 @@ public class RoutesCollector implements ApplicationListener<ContextRefreshedEven @Override public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) { ApplicationContext applicationContext = contextRefreshedEvent.getApplicationContext(); - CamelContext camelContext = contextRefreshedEvent.getApplicationContext().getBean(CamelContext.class); + CamelContext camelContext = contextRefreshedEvent.getApplicationContext().getBean(CamelContext.class); // if we have not yet started if (camelContext.getStatus() == ServiceStatus.Stopped) { LOG.debug("Post-processing CamelContext bean: {}", camelContext.getName()); http://git-wip-us.apache.org/repos/asf/camel/blob/ba84da4a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java index dd2dc3b..d1adfcf 100644 --- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java +++ b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java @@ -33,10 +33,10 @@ public class SpringBootRefreshContextTest { public void shouldOnlyCollectRoutesOnce() { GenericApplicationContext parent = new GenericApplicationContext(); parent.refresh(); - ConfigurableApplicationContext context = new SpringApplicationBuilder(Configuration.class).web(false).parent(parent).run(); - ContextRefreshedEvent refreshEvent = new ContextRefreshedEvent(context); - RoutesCollector collector = context.getBean(RoutesCollector.class); - collector.onApplicationEvent(refreshEvent); //no changes should happen here + ConfigurableApplicationContext context = new SpringApplicationBuilder(Configuration.class).web(false).parent(parent).run(); + ContextRefreshedEvent refreshEvent = new ContextRefreshedEvent(context); + RoutesCollector collector = context.getBean(RoutesCollector.class); + collector.onApplicationEvent(refreshEvent); //no changes should happen here } }
