I am new to camel world. Using camel-cxf, i have implemented a webservice (Based on id on the request, query the database if found form the response with record details else return with static response) which has some very basic database interactions and a transformation.
I am trying to write some unit tests (independent of database i.e) stubbing out database interactions to form static response). Is there a way to skip sending to database endpoint and send the static data on exchange (mimicking database record) and validate the transformation result?
Regards, Shankar
I added the following code to my test class and validated the mockendpoints using expectedBodiesReceivedInAnyOrder method.