CAMEL-10791-added option to handle empty directories while unzipping
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0eeeaaf8 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0eeeaaf8 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0eeeaaf8 Branch: refs/heads/master Commit: 0eeeaaf8ec3ca7f5c0ade055af9d0cbd200eb099 Parents: c35b72e Author: onders86 <ondersez...@gmail.com> Authored: Mon Mar 13 11:09:09 2017 +0300 Committer: Claus Ibsen <davscl...@apache.org> Committed: Tue Mar 14 18:29:38 2017 +0100 ---------------------------------------------------------------------- .../org/apache/camel/dataformat/zipfile/ZipFileDataFormatTest.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/0eeeaaf8/components/camel-zipfile/src/test/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatTest.java ---------------------------------------------------------------------- diff --git a/components/camel-zipfile/src/test/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatTest.java b/components/camel-zipfile/src/test/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatTest.java index 7563abf..e4cecb3 100644 --- a/components/camel-zipfile/src/test/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatTest.java +++ b/components/camel-zipfile/src/test/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatTest.java @@ -115,6 +115,7 @@ public class ZipFileDataFormatTest extends CamelTestSupport { zip.setSupportEmptyDirectory(true); template.sendBody("direct:unzipWithEmptyDirectory", new File("src/test/resources/hello.odt")); assertTrue(Files.exists(Paths.get("hello_out/Configurations2"))); + deleteDirectory(new File("hello_out")); } @Test @@ -124,6 +125,7 @@ public class ZipFileDataFormatTest extends CamelTestSupport { zip.setSupportEmptyDirectory(false); template.sendBody("direct:unzipWithEmptyDirectory", new File("src/test/resources/hello.odt")); assertTrue(!Files.exists(Paths.get("hello_out/Configurations2"))); + deleteDirectory(new File("hello_out")); } @Test