Пример #1
0
 @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);
 }
Пример #2
0
 @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);
 }