fail("Should not find file");
} catch (FileNotFoundException e) {
assertEquals("Cannot find resource in classpath for URI: notfound.txt", e.getMessage());
}
context.stop();
}
public void testLoadFileAsUrl() throws Exception {
CamelContext context = new DefaultCamelContext();
context.start();