Re: Setting multiple expectations when streamCaching is on

2017-11-15 Thread Minhtri Tran
Thanks Gregor and Claus. I will use version 2.20. -Minhtri On Wed, Nov 15, 2017 at 4:26 AM, Claus Ibsen wrote: > Hi > > I logged a ticket > https://issues.apache.org/jira/browse/CAMEL-12010 > > On Wed, Nov 15, 2017 at 10:18 AM, Claus Ibsen wrote: >> Hi >> >> Okay I was building a little test i

Re: Setting multiple expectations when streamCaching is on

2017-11-15 Thread Claus Ibsen
Hi I logged a ticket https://issues.apache.org/jira/browse/CAMEL-12010 On Wed, Nov 15, 2017 at 10:18 AM, Claus Ibsen wrote: > Hi > > Okay I was building a little test in camel-core to reproduce this, and > its because of the Camel 2.20 optimisations we have done around type > converters. > > So

Re: Setting multiple expectations when streamCaching is on

2017-11-15 Thread Claus Ibsen
Hi Okay I was building a little test in camel-core to reproduce this, and its because of the Camel 2.20 optimisations we have done around type converters. So when the data is converted to a String then we hit this optimised IO converter https://github.com/apache/camel/blob/master/camel-core/src/m

Re: Setting multiple expectations when streamCaching is on

2017-11-15 Thread Claus Ibsen
Hi I guess its a bit expected as the output from jackson is streaming based and even so when stream caching is enabled - then when you convert the payload the 2nd time in the expectation then the payload has not been reset prior and therefore is eol, and the assertion fails. Camel will automatic

Re: Setting multiple expectations when streamCaching is on

2017-11-11 Thread Gregor Zurowski
Hi, I just ran your code with Camel 2.20.0 and it works without issues, but I can reproduce the problem with earlier releases such as 2.19.x and 2.18.x. Were there any particular changes in Camel 2.20.0 that would make Minhtri's code work? Please note that the test code works in all versions of C