From 89ec5dba57162d59b39af0c29d6b09e421a985ff Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Tue, 18 Apr 2017 11:57:23 +0200 Subject: [PATCH] catch IllegalArgumentException in case directory does not exists (#487) Signed-off-by: Michael Hirsch --- .../hawkbit/repository/test/util/AbstractIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hawkbit-repository/hawkbit-repository-test/src/main/java/org/eclipse/hawkbit/repository/test/util/AbstractIntegrationTest.java b/hawkbit-repository/hawkbit-repository-test/src/main/java/org/eclipse/hawkbit/repository/test/util/AbstractIntegrationTest.java index 62a0c4913..e4af4c8bf 100644 --- a/hawkbit-repository/hawkbit-repository-test/src/main/java/org/eclipse/hawkbit/repository/test/util/AbstractIntegrationTest.java +++ b/hawkbit-repository/hawkbit-repository-test/src/main/java/org/eclipse/hawkbit/repository/test/util/AbstractIntegrationTest.java @@ -294,7 +294,7 @@ public abstract class AbstractIntegrationTest implements EnvironmentAware { public void cleanUp() { try { FileUtils.deleteDirectory(new File(artifactFilesystemProperties.getPath())); - } catch (final IOException e) { + } catch (final IOException | IllegalArgumentException e) { LOG.warn("Cannot cleanup file-directory", e); } }