@Test public void deleteDirectoryWithChildrenTest() { boolean deleted; if (Files.exists(DIRECTORY_WITH_CHILDREN)) { try { deleted = BundleGeneratorUtils.delete(DIRECTORY_WITH_CHILDREN); } catch (IOException e) { deleted = false; } } else { deleted = false; } Assert.assertTrue(deleted); }
@Test public void deleteChildlessDirectoryTest() { boolean deleted; if (Files.exists(DIRECTORY)) { try { deleted = BundleGeneratorUtils.delete(DIRECTORY); } catch (IOException e) { deleted = false; } } else { deleted = false; } Assert.assertTrue(deleted); }