I have a simple Apache Camel RouteBuilder
class that roughly looks like:
from("an FTP server")
// log stuff
.to("direct:split");
from("direct:split")
// split CSV and aggregate the messages into separate files
.to("direct:save");
from("direct:save")
// save the files to a different FTP server
.end();
In tests that I'm going to write though, I want to use pretty much test the direct:split
endpoint only -- I'll load the CSV and save the new CSVs locally, and then write tests to compare the output with what I'd expect the output to be. Would I just rewrite the RouteBuilder
in my tests? Or would I somehow pull in the direct:split
endpoint, and then just specify different starting and ending locations?