assertDirectoryEquals("target/tempandrename/foo/inprogress.claus.txt", tempFileName);
}
public void testNoPathCreateTempFileName() throws Exception {
Endpoint endpoint = context.getEndpoint(fileUrl);
GenericFileProducer producer = (GenericFileProducer) endpoint.createProducer();
Exchange exchange = endpoint.createExchange();
exchange.getIn().setHeader(Exchange.FILE_NAME, "claus.txt");
String tempFileName = producer.createTempFileName(exchange, "./");
assertDirectoryEquals("./inprogress.claus.txt", tempFileName);