This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch sandbox/camel-3.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 6752e176b330aa43a2a563b966f94b8d39121783 Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Dec 10 08:48:18 2018 +0100 CAMEL-12985 - Fixed backport from 2.x --- .../TransactedInterceptUsingAdviceWithSendToEndpointTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactedInterceptUsingAdviceWithSendToEndpointTest.java b/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactedInterceptUsingAdviceWithSendToEndpointTest.java index 39bbf5c..7b5dd78 100644 --- a/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactedInterceptUsingAdviceWithSendToEndpointTest.java +++ b/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TransactedInterceptUsingAdviceWithSendToEndpointTest.java @@ -16,8 +16,10 @@ */ package org.apache.camel.spring.interceptor; +import org.apache.camel.builder.AdviceWithRouteBuilder; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; +import org.apache.camel.reifier.RouteReifier; import org.apache.camel.spring.SpringRouteBuilder; import org.junit.Test; @@ -53,7 +55,7 @@ public class TransactedInterceptUsingAdviceWithSendToEndpointTest extends Transa } private void addInterceptor(String routeId) throws Exception { - context.getRouteDefinition(routeId).adviceWith(context, new SpringRouteBuilder() { + RouteReifier.adviceWith(context.getRouteDefinitions().get(0), context, new AdviceWithRouteBuilder() { @Override public void configure() throws Exception { interceptSendToEndpoint("direct:(foo|bar)")
