Package com.consol.citrus.docs
Class HtmlTestDocsGenerator
- java.lang.Object
-
- com.consol.citrus.docs.AbstractTestDocsGenerator
-
- com.consol.citrus.docs.HtmlTestDocsGenerator
-
- All Implemented Interfaces:
TestDocsGenerator
public class HtmlTestDocsGenerator extends AbstractTestDocsGenerator
Class to automatically generate a list of all available tests in HTML.- Since:
- 2007
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description HtmlTestDocsGenerator()Default constructor with test doc template name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HtmlTestDocsGeneratorbuild()Builds a new test doc generator.voiddoBody(OutputStream buffered)Generates the test documentation.voiddoHeader(OutputStream buffered)Generates the test documentation.StringgetPageTitle()protected PropertiesgetTestDocProperties()Gets the test doc properties.static voidmain(String[] args)Executable application cli.voidsetPageTitle(String pageTitle)HtmlTestDocsGeneratoruseSrcDirectory(String testDir)Adds a custom test source directory.HtmlTestDocsGeneratorwithColumns(String columns)Adds a column configuration.HtmlTestDocsGeneratorwithLogo(String logoFilePath)Adds a custom logo file path.HtmlTestDocsGeneratorwithOutputFile(String filename)Adds a custom output file.HtmlTestDocsGeneratorwithOverviewTitle(String overvieTitle)Adds a custom overview title.HtmlTestDocsGeneratorwithPageTitle(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
-
build
public static HtmlTestDocsGenerator build()
Builds a new test doc generator.- Returns:
-
withOutputFile
public HtmlTestDocsGenerator withOutputFile(String filename)
Adds a custom output file.- Parameters:
filename- the output file name.- Returns:
-
withPageTitle
public HtmlTestDocsGenerator withPageTitle(String pageTitle)
Adds a custom page title.- Parameters:
pageTitle- the page title.- Returns:
-
withOverviewTitle
public HtmlTestDocsGenerator withOverviewTitle(String overvieTitle)
Adds a custom overview title.- Parameters:
overvieTitle- the title.- Returns:
-
withColumns
public HtmlTestDocsGenerator withColumns(String columns)
Adds a column configuration.- Parameters:
columns- the column names.- Returns:
-
withLogo
public HtmlTestDocsGenerator withLogo(String logoFilePath)
Adds a custom logo file path.- Parameters:
logoFilePath- the file path.- Returns:
-
useSrcDirectory
public HtmlTestDocsGenerator useSrcDirectory(String testDir)
Adds a custom test source directory.- Parameters:
testDir- the test source directory.- Returns:
-
main
public static void main(String[] args)
Executable application cli.- Parameters:
args-
-
getTestDocProperties
protected Properties getTestDocProperties()
Description copied from class:AbstractTestDocsGeneratorGets the test doc properties.- Specified by:
getTestDocPropertiesin classAbstractTestDocsGenerator- Returns:
-
setPageTitle
public void setPageTitle(String pageTitle)
- Parameters:
pageTitle- the pageTitle to set
-
getPageTitle
public String getPageTitle()
- Returns:
- the pageTitle
-
-