@Test public void testRemoveBundle() throws IOException { final File bundleFile = new File(tmpDir, FILENAME); final String location = "file:" + bundleFile.getAbsolutePath(); FileUtils.writeByteArrayToFile(bundleFile, CONTENT.getBytes()); when(bundle.getLocation()).thenReturn(location); bundleDirManager.removeBundle(bundle); assertFalse(bundleFile.exists()); }
public boolean removeBundle(Bundle bundle) throws MalformedURLException { URL location = new URL(bundle.getLocation()); File bundleFile = FileUtils.toFile(location); return FileUtils.deleteQuietly(bundleFile); }
BundleDirectoryManager { public boolean removeBundle(Bundle bundle) throws MalformedURLException { URL location = new URL(bundle.getLocation()); File bundleFile = FileUtils.toFile(location); return FileUtils.deleteQuietly(bundleFile); } }
BundleDirectoryManager { public boolean removeBundle(Bundle bundle) throws MalformedURLException { URL location = new URL(bundle.getLocation()); File bundleFile = FileUtils.toFile(location); return FileUtils.deleteQuietly(bundleFile); }  }
BundleDirectoryManager { public boolean removeBundle(Bundle bundle) throws MalformedURLException { URL location = new URL(bundle.getLocation()); File bundleFile = FileUtils.toFile(location); return FileUtils.deleteQuietly(bundleFile); }  @PostConstruct void init(); String getBundleDir(); void setBundleDir(String bundleDir); File saveBundleFile(MultipartFile multipartFile); File saveBundleStreamToFile(String destFileName, InputStream in); boolean removeBundle(Bundle bundle); }
BundleDirectoryManager { public boolean removeBundle(Bundle bundle) throws MalformedURLException { URL location = new URL(bundle.getLocation()); File bundleFile = FileUtils.toFile(location); return FileUtils.deleteQuietly(bundleFile); }  @PostConstruct void init(); String getBundleDir(); void setBundleDir(String bundleDir); File saveBundleFile(MultipartFile multipartFile); File saveBundleStreamToFile(String destFileName, InputStream in); boolean removeBundle(Bundle bundle);  }