@Test public void testCreateTempFile() throws IOException { File actual = EnrichmentUtil.createTempFile(dirPath); assertNotNull(actual); }
static File createTempFile(String prefix) { File dir = DaoRegistry.getInstance().getConfiguration().getDirectory("nba.etl.install.dir"); File tmpDir = FileUtil.newFile(dir, "tmp"); if (!tmpDir.isDirectory()) { tmpDir.mkdir(); } StringBuilder name = new StringBuilder(100); name.append(prefix); name.append("."); name.append(System.currentTimeMillis()); name.append("."); name.append(System.identityHashCode(new Object())); name.append(".json"); return FileUtil.newFile(tmpDir, name.toString()); }
EnrichmentUtil { static File createTempFile(String prefix) { File dir = DaoRegistry.getInstance().getConfiguration().getDirectory("nba.etl.install.dir"); File tmpDir = FileUtil.newFile(dir, "tmp"); if (!tmpDir.isDirectory()) { tmpDir.mkdir(); } StringBuilder name = new StringBuilder(100); name.append(prefix); name.append("."); name.append(System.currentTimeMillis()); name.append("."); name.append(System.identityHashCode(new Object())); name.append(".json"); return FileUtil.newFile(tmpDir, name.toString()); } }
EnrichmentUtil { static File createTempFile(String prefix) { File dir = DaoRegistry.getInstance().getConfiguration().getDirectory("nba.etl.install.dir"); File tmpDir = FileUtil.newFile(dir, "tmp"); if (!tmpDir.isDirectory()) { tmpDir.mkdir(); } StringBuilder name = new StringBuilder(100); name.append(prefix); name.append("."); name.append(System.currentTimeMillis()); name.append("."); name.append(System.identityHashCode(new Object())); name.append(".json"); return FileUtil.newFile(tmpDir, name.toString()); }  }
EnrichmentUtil { static File createTempFile(String prefix) { File dir = DaoRegistry.getInstance().getConfiguration().getDirectory("nba.etl.install.dir"); File tmpDir = FileUtil.newFile(dir, "tmp"); if (!tmpDir.isDirectory()) { tmpDir.mkdir(); } StringBuilder name = new StringBuilder(100); name.append(prefix); name.append("."); name.append(System.currentTimeMillis()); name.append("."); name.append(System.identityHashCode(new Object())); name.append(".json"); return FileUtil.newFile(tmpDir, name.toString()); }  static List<TaxonomicEnrichment> createEnrichments(List<Taxon> taxa); }
EnrichmentUtil { static File createTempFile(String prefix) { File dir = DaoRegistry.getInstance().getConfiguration().getDirectory("nba.etl.install.dir"); File tmpDir = FileUtil.newFile(dir, "tmp"); if (!tmpDir.isDirectory()) { tmpDir.mkdir(); } StringBuilder name = new StringBuilder(100); name.append(prefix); name.append("."); name.append(System.currentTimeMillis()); name.append("."); name.append(System.identityHashCode(new Object())); name.append(".json"); return FileUtil.newFile(tmpDir, name.toString()); }  static List<TaxonomicEnrichment> createEnrichments(List<Taxon> taxa);  }