/** * @param atlas * @param atlasCreator * @return directory in which the atlas has been created * @throws AtlasTestException * @throws InterruptedException * @throws IOException */ protected File createAtlas(AtlasInterface atlas, AtlasCreator atlasCreator) throws AtlasTestException, InterruptedException, IOException { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HHmmss_SSSS"); File customAtlasDir = new File( testAtlasDir, atlasCreator.getClass().getSimpleName() + "_" + atlas.getName() + "_" + sdf.format(new Date())); createAtlas(atlas, atlasCreator, customAtlasDir); return customAtlasDir; }
protected void createAtlas(AtlasInterface atlas, AtlasCreator atlasCreator, File customAtlasDir) throws AtlasTestException, InterruptedException, IOException { log.debug( "Creating atlas " + atlas.getName() + " using " + atlasCreator.getClass().getSimpleName() + " to \"" + customAtlasDir + "\""); AtlasThread atlasThread = new AtlasThread(atlas, atlasCreator); atlasThread.setCustomAtlasDir(customAtlasDir); atlasThread.start(); atlasThread.join(); }