This post has NOT been accepted by the mailing list yet.
I have a fairly simple app which is pulling messages off a jms and transforming them with xslt before writing a file to disk.
I have lots of unit tests to test that the content in the file is correct but really these are integration tests as they are waiting for the file to be written to disk before testing the contents. So as more and more tests are added they take a long time to run.
So I was wondering if there was a clever way to mock out the file:.. call so the contents of the message is tested without having to write it to disk. I don't want to have to add .to("mock:somewhere") to all my routes and I don't want to have to replicate the code in my routebuilders in the tests themselves.