cookercucumber_parser.fileGenerationFactory.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 cookercucumber_parser.fileGenerationFactory;
import common.fileFactory.FileUtility;
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
* Author : Manjunath Prabhakar ([email protected])
*
* @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
FileUtility.writeAndCreateFile(Content, FeatureFileName + FF_EXTENSION);
}
}