Hi,

I'm just trying to load my web.xml into context from my Junit class. But the
issue is , the test file only recogonizes the web.xml only is its in the
same folder as the class.
 i.e  InputStream is = this.getClass().getResourceAsStream("web.xml");

I would like to have this web.xml in src/test/resources folder and try to
load from there, which fails.
 i.e  InputStream is =
this.getClass().getResourceAsStream("src/test/resources/web.xml");

Would like to under stand on how to load the web.xml for testing purpose
alone from different directory.
Please do let me know for further clarifications.

Thanks.




--
View this message in context: 
http://camel.465427.n5.nabble.com/web-xml-not-loading-tp5763906.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to