Package com.tngtech.jgiven.report
Class AbstractReportConfig
java.lang.Object
com.tngtech.jgiven.report.AbstractReportConfig
- Direct Known Subclasses:
AsciiDocReportConfig,PlainTextReportConfig
Basic configuration for a report with an extendable interface
The configMap should always be in a valid state and have all possible flags, except the optional ones without a default (like --help)
For examples see
AsciiDocReportConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidadditionalConfigOptions(List<ConfigOption> configOptions) This is used to create newConfigOptionfor theAbstractReportConfigby appending them to the listgetTitle()voidvoidsetExcludeEmptyScenarios(Boolean excludeEmptyScenarios) voidsetSourceDir(File sourceDir) voidsetTargetDir(File targetDir) voidabstract voiduseConfigMap(Map<String, Object> configMap) Every flag should be defined except the optional ones without a default (like --help)
-
Constructor Details
-
AbstractReportConfig
-
AbstractReportConfig
public AbstractReportConfig()
-
-
Method Details
-
getTitle
-
setTitle
-
getSourceDir
-
setSourceDir
-
getTargetDir
-
setTargetDir
-
getExcludeEmptyScenarios
-
setExcludeEmptyScenarios
-
getReportModel
-
printUsageAndExit
public void printUsageAndExit() -
useConfigMap
Every flag should be defined except the optional ones without a default (like --help)- Parameters:
configMap- the config map with a mapping of Strings to castable objects
-
additionalConfigOptions
This is used to create newConfigOptionfor theAbstractReportConfigby appending them to the list- Parameters:
configOptions- config options list, add new options here
-