This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 2070f71 Fixed test 2070f71 is described below commit 2070f71ce13dc511fe3e08d2686569c342d8f21c Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sun Mar 15 20:02:19 2020 +0100 Fixed test --- .../java/org/apache/camel/spring/StartupShutdownOrderBaseTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/camel-spring/src/test/java/org/apache/camel/spring/StartupShutdownOrderBaseTest.java b/components/camel-spring/src/test/java/org/apache/camel/spring/StartupShutdownOrderBaseTest.java index da824f9..2d6945c 100644 --- a/components/camel-spring/src/test/java/org/apache/camel/spring/StartupShutdownOrderBaseTest.java +++ b/components/camel-spring/src/test/java/org/apache/camel/spring/StartupShutdownOrderBaseTest.java @@ -19,7 +19,6 @@ package org.apache.camel.spring; import java.util.Map; import org.apache.camel.CamelContext; -import org.apache.camel.support.service.ServiceSupport; import org.junit.Test; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; @@ -211,7 +210,7 @@ public abstract class StartupShutdownOrderBaseTest { public void camelContextShouldBeStartedLastAndStoppedFirst() { final ConfigurableApplicationContext context = createContext(); - final ServiceSupport camelContext = (ServiceSupport) context.getBean(CamelContext.class); + final CamelContext camelContext = context.getBean(CamelContext.class); final Map<String, TestState> testStates = context.getBeansOfType(TestState.class); assertThat(camelContext.isStarted()).as("Camel context should be started").isTrue(); @@ -224,8 +223,8 @@ public abstract class StartupShutdownOrderBaseTest { abstract ConfigurableApplicationContext createContext(); - static ServiceSupport camel(final ApplicationContext context) { - return (ServiceSupport) context.getBean(CamelContext.class); + static CamelContext camel(final ApplicationContext context) { + return context.getBean(CamelContext.class); } static boolean camelIsStarted(final ApplicationContext context) {