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 2018/12/10 07:49:04 UTC
[camel] 08/08: CAMEL-12985 - Fixed backport from 2.x
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 <an...@gmail.com>
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)")