Thanks for pointing out. Now I've moved to camel version 2.9.2 and started
getting exceptions.
Makes lot of sense now and I've cleared that issue.
Please can you also clarify the Mock issue I have.
I have the below test method and am using "CamelSpringTestSupport".
As I am setting the headers as below, I would expect the test to fail but
for some reason it is passing.
Is there any thing missing or am I totally doing some silly thing here.
<setHeader headerName="messageId"><constant>2</constant></setHeader>
<setHeader headerName="batchSize"><constant>2000</constant></setHeader>
<setHeader headerName="inputDataType"><constant>TDR</constant></setHeader>
*@Test
public void testMockC() throws Exception{
context.getRouteDefinitions().get(0).adviceWith(context, new
AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
mockEndpoints();
}
});
getMockEndpoint("mock:direct:parsedData").expectedHeaderReceived("inputDataType",
"TAS");
getMockEndpoint("mock:direct:parsedData").expectedHeaderReceived("messageId",
2);
getMockEndpoint("mock:direct:parsedData").expectedHeaderReceived("batchSize",
4000);
assertMockEndpointsSatisfied();
assertNotNull(context.hasEndpoint("mock:direct:parsedData"));
}*
--
View this message in context:
http://camel.465427.n5.nabble.com/Issue-Choice-not-working-tp5712978p5713045.html
Sent from the Camel - Users mailing list archive at Nabble.com.