protected File createTempDir() throws IOException {
  File tmp=createTempFile(".dir");
  if (!tmp.delete()) {
    throw new IOException("Cannot delete temporary file '" + tmp.getPath() + "'");
  }
  tmp.mkdir();
  return tmp;
}

protected File createTempDir ( ) throws IOException { File tmp = createTempFile ( ".dir" ) ; if ( ! tmp . delete ( ) ) { throw new IOException ( "Cannot delete temporary file '" + tmp . getPath ( ) + "'" ) ; } tmp . mkdir ( ) ; return tmp ; }
creates a directory in the system ' s default folder for temporary files . the directory ( and all it ' s contained files / directory ) automatically get removed during teardown . the name of the created directory begins with ' gerrit_test_ ' , and is be located in the system ' s default folder for temporary files .
