/** * Creates the folder where to save screenshots of failing GUI tests. The name of the folder to create is * 'failed-gui-tests'. If {@link org.assertj.swing.core.Settings#shouldPreserveScreenshots()} is <code>false</code> * and the folder already exists, it is deleted and recreated again. If it is <code>true</code> the folder is created * if it not yet exists. * * @return the created folder. * @throws org.assertj.core.api.exception.RuntimeIOException if any error occurs when creating the folder. */ public File createImageFolder() { return folderCreator.createFolder(currentFolder(), FAILED_GUI_TESTS_FOLDER, !shouldPreserveScreenshots()); } }
/** * Creates the folder where to save screenshots of failing GUI tests. The name of the folder to create is * 'failed-gui-tests'. If {@link org.assertj.swing.core.Settings#shouldPreserveScreenshots()} is <code>false</code> * and the folder already exists, it is deleted and recreated again. If it is <code>true</code> the folder is created * if it not yet exists. * * @return the created folder. * @throws RuntimeException if any error occurs when creating the folder. */ public File createImageFolder() { return folderCreator.createFolder(currentFolder(), FAILED_GUI_TESTS_FOLDER, !shouldPreserveScreenshots()); } }