Package com.consol.citrus.docs
Class ExcelTestDocsGenerator
- java.lang.Object
-
- com.consol.citrus.docs.AbstractTestDocsGenerator
-
- com.consol.citrus.docs.ExcelTestDocsGenerator
-
- All Implemented Interfaces:
TestDocsGenerator
public class ExcelTestDocsGenerator extends AbstractTestDocsGenerator
Class to automatically generate a list of all available tests in MS Excel.- Since:
- 2007
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description ExcelTestDocsGenerator()Default constructor using test doc template name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExcelTestDocsGeneratorbuild()Builds a new test doc generator.voiddoBody(OutputStream buffered)Generates the test documentation.voiddoHeader(OutputStream buffered)Generates the test documentation.StringgetAuthor()StringgetCompany()StringgetPageTitle()protected PropertiesgetTestDocProperties()Gets the test doc properties.static voidmain(String[] args)Executable application cli.voidsetAuthor(String author)voidsetCompany(String company)voidsetPageTitle(String pageTitle)ExcelTestDocsGeneratoruseSrcDirectory(String testDir)Adds a custom test source directory.ExcelTestDocsGeneratorwithAuthor(String author)Adds a custom author name.ExcelTestDocsGeneratorwithCompany(String company)Adds a custom company.ExcelTestDocsGeneratorwithCustomHeaders(String customHeaders)Adds a custom header configuration.ExcelTestDocsGeneratorwithOutputFile(String filename)Adds a custom output file.ExcelTestDocsGeneratorwithPageTitle(String pageTitle)Adds a custom page title.-
Methods inherited from class com.consol.citrus.docs.AbstractTestDocsGenerator
generateDoc, getSrcDirectory
-
-
-
-
Method Detail
-
doHeader
public void doHeader(OutputStream buffered) throws TransformerException, IOException, SAXException
Description copied from class:AbstractTestDocsGeneratorGenerates the test documentation.- Specified by:
doHeaderin classAbstractTestDocsGenerator- Throws:
TransformerExceptionIOExceptionSAXException
-
doBody
public void doBody(OutputStream buffered) throws TransformerException, IOException, SAXException
Description copied from class:AbstractTestDocsGeneratorGenerates the test documentation.- Specified by:
doBodyin classAbstractTestDocsGenerator- Throws:
TransformerExceptionIOExceptionSAXException
-
getTestDocProperties
protected Properties getTestDocProperties()
Description copied from class:AbstractTestDocsGeneratorGets the test doc properties.- Specified by:
getTestDocPropertiesin classAbstractTestDocsGenerator- Returns:
-
build
public static ExcelTestDocsGenerator build()
Builds a new test doc generator.- Returns:
-
withOutputFile
public ExcelTestDocsGenerator withOutputFile(String filename)
Adds a custom output file.- Parameters:
filename- the output file name.- Returns:
-
withPageTitle
public ExcelTestDocsGenerator withPageTitle(String pageTitle)
Adds a custom page title.- Parameters:
pageTitle- the page title.- Returns:
-
useSrcDirectory
public ExcelTestDocsGenerator useSrcDirectory(String testDir)
Adds a custom test source directory.- Parameters:
testDir- the test source directory.- Returns:
-
withAuthor
public ExcelTestDocsGenerator withAuthor(String author)
Adds a custom author name.- Parameters:
author- the author name.- Returns:
-
withCompany
public ExcelTestDocsGenerator withCompany(String company)
Adds a custom company.- Parameters:
company- the company name.- Returns:
-
withCustomHeaders
public ExcelTestDocsGenerator withCustomHeaders(String customHeaders)
Adds a custom header configuration.- Parameters:
customHeaders- the header configuration.- Returns:
-
main
public static void main(String[] args)
Executable application cli.- Parameters:
args-
-
setPageTitle
public void setPageTitle(String pageTitle)
- Parameters:
pageTitle- the pageTitle to set
-
getPageTitle
public String getPageTitle()
- Returns:
- the pageTitle
-
getCompany
public String getCompany()
- Returns:
- the company
-
setCompany
public void setCompany(String company)
- Parameters:
company- the company to set
-
getAuthor
public String getAuthor()
- Returns:
- the author
-
setAuthor
public void setAuthor(String author)
- Parameters:
author- the author to set
-
-