/** * Tests if files with variables inside (e.g. "${user.home}/.m2/repository/abc") are deleted. * * @throws IOException Signals that an I/O exception has occurred. */ @Test public void testDeleteDir() throws IOException { String dirname = "dir" + System.currentTimeMillis(); File testDir = new File(FileFixture.getTmpDir(), dirname); assertTrue("can't be created: " + testDir, testDir.mkdir()); FileFixture.deleteDir("${java.io.tmpdir}/" + dirname); assertFalse("not deleted: " + testDir, testDir.exists()); }