@Test public void deleteAllShouldDeleteRecursivelyAndLog(@Mocked final FileSystemUtils unused) { new FileSystemStorageService(mockOdeProperties).deleteAll(); new Verifications() { { FileSystemUtils.deleteRecursively((File) any); EventLogger.logger.info("Deleting {}", (Path) any); } }; }
@Override public void deleteAll() { FileSystemUtils.deleteRecursively(rootLocation.toFile()); EventLogger.logger.info("Deleting {}", this.rootLocation); }
FileSystemStorageService implements StorageService { @Override public void deleteAll() { FileSystemUtils.deleteRecursively(rootLocation.toFile()); EventLogger.logger.info("Deleting {}", this.rootLocation); } }
FileSystemStorageService implements StorageService { @Override public void deleteAll() { FileSystemUtils.deleteRecursively(rootLocation.toFile()); EventLogger.logger.info("Deleting {}", this.rootLocation); } @Autowired  FileSystemStorageService(OdeProperties properties); }
FileSystemStorageService implements StorageService { @Override public void deleteAll() { FileSystemUtils.deleteRecursively(rootLocation.toFile()); EventLogger.logger.info("Deleting {}", this.rootLocation); } @Autowired  FileSystemStorageService(OdeProperties properties); @Override void store(MultipartFile file, String type); @Override Stream<Path> loadAll(); @Override Path load(String filename); @Override Resource loadAsResource(String filename); @Override void deleteAll(); @Override void init(); Path getRootLocation(); void setRootLocation(Path rootLocation); }
FileSystemStorageService implements StorageService { @Override public void deleteAll() { FileSystemUtils.deleteRecursively(rootLocation.toFile()); EventLogger.logger.info("Deleting {}", this.rootLocation); } @Autowired  FileSystemStorageService(OdeProperties properties); @Override void store(MultipartFile file, String type); @Override Stream<Path> loadAll(); @Override Path load(String filename); @Override Resource loadAsResource(String filename); @Override void deleteAll(); @Override void init(); Path getRootLocation(); void setRootLocation(Path rootLocation);  }