public class ExcelTestDocGenerator extends AbstractTestDocGenerator
log, outputFile, srcDirectory, testDocTemplate
Constructor and Description |
---|
ExcelTestDocGenerator()
Default constructor using test doc template name.
|
Modifier and Type | Method and Description |
---|---|
static ExcelTestDocGenerator |
build()
Builds a new test doc generator.
|
void |
doBody(OutputStream buffered)
Generates the test documentation.
|
void |
doHeader(OutputStream buffered)
Generates the test documentation.
|
String |
getAuthor() |
String |
getCompany() |
String |
getPageTitle() |
protected Properties |
getTestDocProperties()
Gets the test doc properties.
|
static void |
main(String[] args)
Executable application cli.
|
void |
setAuthor(String author) |
void |
setCompany(String company) |
void |
setPageTitle(String pageTitle) |
ExcelTestDocGenerator |
useSrcDirectory(String testDir)
Adds a custom test source directory.
|
ExcelTestDocGenerator |
withAuthor(String author)
Adds a custom author name.
|
ExcelTestDocGenerator |
withCompany(String company)
Adds a custom company.
|
ExcelTestDocGenerator |
withCustomHeaders(String customHeaders)
Adds a custom header configuration.
|
ExcelTestDocGenerator |
withOutputFile(String filename)
Adds a custom output file.
|
ExcelTestDocGenerator |
withPageTitle(String pageTitle)
Adds a custom page title.
|
generateDoc, getDocumentBuilder, getFileOutputStream, getOutputDirectory, getOutputFile, getSrcDirectory, getTestFiles, getTransformer, setOutputFile, setSrcDirectory
public ExcelTestDocGenerator()
public void doHeader(OutputStream buffered) throws TransformerException, IOException, SAXException
AbstractTestDocGenerator
doHeader
in class AbstractTestDocGenerator
TransformerException
IOException
SAXException
public void doBody(OutputStream buffered) throws TransformerException, IOException, SAXException
AbstractTestDocGenerator
doBody
in class AbstractTestDocGenerator
TransformerException
IOException
SAXException
protected Properties getTestDocProperties()
AbstractTestDocGenerator
getTestDocProperties
in class AbstractTestDocGenerator
public static ExcelTestDocGenerator build()
public ExcelTestDocGenerator withOutputFile(String filename)
filename
- the output file name.public ExcelTestDocGenerator withPageTitle(String pageTitle)
pageTitle
- the page title.public ExcelTestDocGenerator useSrcDirectory(String testDir)
testDir
- the test source directory.public ExcelTestDocGenerator withAuthor(String author)
author
- the author name.public ExcelTestDocGenerator withCompany(String company)
company
- the company name.public ExcelTestDocGenerator withCustomHeaders(String customHeaders)
customHeaders
- the header configuration.public static void main(String[] args)
args
- public void setPageTitle(String pageTitle)
pageTitle
- the pageTitle to setpublic String getPageTitle()
public String getCompany()
public void setCompany(String company)
company
- the company to setpublic String getAuthor()
public void setAuthor(String author)
author
- the author to setCopyright © 2008–2017 ConSol Software GmbH. All rights reserved.