Hi,
Since Camel 2.12, the following syntax is not longer tolerated/accepted. Is
there a workaround ....
public void testInvalidTransactedInterceptFrom() throws Exception {
try {
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
interceptFrom().transacted();
from("direct:start")
.split(body())
.to("mock:split")
.end();
}
});
fail("Should fail");
} catch (IllegalArgumentException e) {
assertTrue(e.getMessage().startsWith("The output must be added
as top-level on the route."));
}
}
Regards,
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com