[ https://issues.apache.org/jira/browse/CAMEL-6319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Per Jørgen Walstrøm updated CAMEL-6319: --------------------------------------- Description: I'm currently trying to advice an Endpoint which has a rather lengthy options-part: activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&jmsMessageType=Map&preserveMessageQos=true&concurrentConsumers=10 this fails when doing mockEndpointsAndSkip with the above String without the options, the advice is no problem see attached unit test was: I'm currently trying to advice an Endpoint which has a rather lengthy options-part: activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&jmsMessageType=Map&preserveMessageQos=true&concurrentConsumers=10 this fails when doing mockEndpointsAndSkip with the above String without the options, the advice is no problem final String pub = "activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&concurrentConsumers=10&jmsMessageType=Map&preserveMessageQos=true"; --- from(Route.INCOMING.getUri()).to(pub).end(); --- context.getRouteDefinition(Route.INCOMING.name()).adviceWith(context, new AdviceWithRouteBuilder() { @Override public void configure() throws Exception { mockEndpointsAndSkip(pub); } }); context.start(); MockEndpoint topicEndpointMock = getMockEndpoint("mock:" + pub); topicEndpointMock.expectedMessageCount(1); > Not possible to advice activemq endpoint with options > ----------------------------------------------------- > > Key: CAMEL-6319 > URL: https://issues.apache.org/jira/browse/CAMEL-6319 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.11.0 > Reporter: Per Jørgen Walstrøm > Priority: Minor > Attachments: applicationContext-failingAdviceTest.xml > > > I'm currently trying to advice an Endpoint which has a rather lengthy > options-part: > activemq:topic:integrations?allowNullBody=false&asyncConsumer=true&jmsMessageType=Map&preserveMessageQos=true&concurrentConsumers=10 > this fails when doing mockEndpointsAndSkip with the above String > without the options, the advice is no problem > see attached unit test -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira