Am 03.11.12 17:45 schrieb "Babak Vahdat" unter
<[email protected]>:

>Hi
>
>Do you mean:
>
>template.sendBody("direct:create",
>context.getTypeConverter().convertTo(String.class, new
>File("src/data/someXmlFile.xml")));
>
>Babak
>

Ah just spotted that Christian has already suggested the same approach so
please ignore my answer.

Babak

>
>
>--
>View this message in context:
>http://camel.465427.n5.nabble.com/Use-a-file-as-input-to-unit-tests-tp5722
>069p5722079.html
>Sent from the Camel - Users mailing list archive at Nabble.com.


Reply via email to