HierarchicalDirectoryBuilder implements DirectoryBuilder { @Override public File getDirectory () { return getUnused (); } HierarchicalDirectoryBuilder(File root, int max_occurence); @Override File getDirectory(); File getRoot(); void resetCounter(); static final String DHUS_ENTRY_NAME; }
@Test (invocationCount=100) public void getDirectory255() { long start=new Date ().getTime (); HierarchicalDirectoryBuilder db=new HierarchicalDirectoryBuilder(tmp,3); File f = db.getDirectory (); long end=new Date ().getTime (); logger.info ("[" + (end-start) + " ms] " + f.getPath ()); }