CookerCucumberMavenPlugin.FileGenFactory.FeatureFileGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cooker-maven-plugin Show documentation
Show all versions of cooker-maven-plugin Show documentation
Derives smallest Feature File, Allows Data from Excel(xls and xlsx) and Also provides a clear and
concise reporting
package CookerCucumberMavenPlugin.FileGenFactory;
import CookerCucumberMavenPlugin.FileFactory.FileUtils;
public class FeatureFileGenerator {
//Feature File Extension
private static final String FF_EXTENSION = ".feature";
/**
* static method used to generate Feature Files. gets the content from feature file and feature file name
*
* @param Content //Content for Feature File
* @param FeatureFileName //Full Path of Feature File including file name
*/
public static void genFeatureFile(String Content, String FeatureFileName) {
//Uses static method from fileutils class to create a feature file
FileUtils.writeAndCreateFile(Content, FeatureFileName + FF_EXTENSION);
}
}