deleteDirectory("target/gzip");
super.setUp();
}
public void testGzipFileUnmarshalDelete() throws Exception {
NotifyBuilder notify = new NotifyBuilder(context).whenDone(2).create();
getMockEndpoint("mock:result").expectedBodiesReceived("Hello World");
template.sendBodyAndHeader("file:target/gzip", "Hello World", Exchange.FILE_NAME, "hello.txt");
assertMockEndpointsSatisfied();
notify.matchesMockWaitTime();
File in = new File("target/gzip/hello.txt").getAbsoluteFile();
assertFalse("Should have been deleted " + in, in.exists());
File out = new File("target/gzip/out/hello.txt.gz").getAbsoluteFile();