@Test public void testDeleteNullFile() throws IOException { final Path tempDirectory = Files.createTempDirectory(null); final UploadManager uploadManager = new UploadManager(tempDirectory.toString()); final boolean result = uploadManager.deleteKeyStore(null); assertTrue("Gracefully returns true", result); assertTrue("Temp dir still exists", tempDirectory.toFile().exists()); }
public boolean deleteKeyStore(final String keyStoreFile) { return deleteFile(keyStoreFile, keyStoreUploadPath); }
UploadManager { public boolean deleteKeyStore(final String keyStoreFile) { return deleteFile(keyStoreFile, keyStoreUploadPath); } }
UploadManager { public boolean deleteKeyStore(final String keyStoreFile) { return deleteFile(keyStoreFile, keyStoreUploadPath); } UploadManager(final String uploadPath); }
UploadManager { public boolean deleteKeyStore(final String keyStoreFile) { return deleteFile(keyStoreFile, keyStoreUploadPath); } UploadManager(final String uploadPath); String handleDeserializerUpload(final MultipartFile file, final String outFileName); String handleFilterUpload(final MultipartFile file, final String outFileName); String handleKeystoreUpload(final MultipartFile file, final String outFileName); boolean deleteKeyStore(final String keyStoreFile); }
UploadManager { public boolean deleteKeyStore(final String keyStoreFile) { return deleteFile(keyStoreFile, keyStoreUploadPath); } UploadManager(final String uploadPath); String handleDeserializerUpload(final MultipartFile file, final String outFileName); String handleFilterUpload(final MultipartFile file, final String outFileName); String handleKeystoreUpload(final MultipartFile file, final String outFileName); boolean deleteKeyStore(final String keyStoreFile);  }