Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.5.0
-
None
-
Unknown
Description
In camel-jdbc modifying the code to replace calls to getOut with getMessage, as instructed by the javadoc, leads to a test failure in JdbcOptionsTest.testInsertCommit.
The code fails because this assertion fails. In other words, the call to mock.getExchanges().get(0).getIn().getBody(String.class); does return a body when applying these changes.
I am attaching a patch that can be used to reproduce the issue. To apply the patch, from the camel-jdbc component directory, use patch -p3 < jdbc-deprecations.patch.
Note 1: Removing the assertion doesn't seem to affect the results of the test
Note 2: JdbcOptionsTest is not even modified by the patch.