FileBasedFilesystemDirectory implements FilesystemDirectory { @Override public void delete(String filename) throws IOException { Path path = directory.resolve(filename); org.terracotta.utilities.io.Files.deleteIfExists(path); } FileBasedFilesystemDirectory(Path directory); @Override DirectoryLock lock(); @Override FileData create(String filename, boolean canExist); @Override FileData getFileData(String filename); @Override void delete(String filename); @Override void backup(String filename);  }
@Test public void deleteFileThatDoesNotExist() throws Exception { filesystemDirectory.delete("abc"); assertFalse(Files.exists(testPath.resolve("abc"))); }