private File createTempFile(String suffix) throws IOException {
  String prefix="gerrit_test_";
  if (!Strings.isNullOrEmpty(getName())) {
    prefix+=getName() + "_";
  }
  File tmp=File.createTempFile(prefix,suffix);
  toCleanup.add(tmp);
  return tmp;
}

private File createTempFile ( String suffix ) throws IOException { String prefix = "gerrit_test_" ; if ( ! Strings . isNullOrEmpty ( getName ( ) ) ) { prefix += getName ( ) + "_" ; } File tmp = File . createTempFile ( prefix , suffix ) ; toCleanup . add ( tmp ) ; return tmp ; }
creates a file in the system ' s default folder for temporary files . the file / directory automatically gets removed during teardown . the name of the created file begins with ' gerrit_test_ ' , and is located in the system ' s default folder for temporary files .
