camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Babak Vahdat <babak.vah...@swissonline.ch>
Subject Re: Use a file as input to unit tests
Date Sat, 03 Nov 2012 18:50:29 GMT


Am 03.11.12 17:45 schrieb "Babak Vahdat" unter
<babak.vahdat@swissonline.ch>:

>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.



Mime
View raw message