/**
  * 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());
 }
 /**
  * It should be also possible to use e.g. "${user.home}/.m2/repository" as filename (which is the
  * path to the local Maven repository).
  */
 @Test
 public void testTypeWithVariableFilename() {
   fixture.file = "${user.home}/.m2/repository";
   assertEquals("dir", fixture.type());
 }
 /** Test method for {@link org.openoffice.maven.it.fixture.FileFixture#type()}. */
 @Test
 public void testType() {
   File tmpDir = FileFixture.getTmpDir();
   fixture.file = tmpDir.getAbsolutePath();
   assertEquals("dir", fixture.type());
 }