Re: MockEndpoint header test seems wrong

2016-08-03 Thread James Green
Forget this - finally found a case where the header was being set in a somewhat contrived manner. On 2 August 2016 at 18:02, James Green wrote: > Hi, > > In my test I have: > > mockEndpoint.allMessages().header("SomeKey").isInstanceOf(SomeClazz.class); > > Which should

MockEndpoint header test seems wrong

2016-08-02 Thread James Green
Hi, In my test I have: mockEndpoint.allMessages().header("SomeKey").isInstanceOf(SomeClazz.class); Which should fail, as the route sets SomeKey as a Property of the Exchange, not a Header. I have scanned the code base several times for SomeKey to be set as a Header but I cannot find such a