JRubyCaller { protected File generateTempFolder(final String gemName) throws IOException { final File folder = File.createTempFile(gemName, ""); FileUtils.deleteQuietly(folder); FileUtils.forceMkdir(folder); FileUtils.forceDeleteOnExit(folder); return folder; } JRubyCaller(final Logger logger); File unpack(final String gemName, final String gemVersion);  }
@Test public void generateTempFolder() throws IOException { final JRubyCaller jrubyCaller = new JRubyCaller(this.logger); final File folder = jrubyCaller .generateTempFolder("forLibSassGradlePluginTest"); Assert.assertTrue(folder.exists()); Assert.assertTrue(folder.isDirectory()); }