Package org.jbehave.core.reporters
Class TemplateableViewGenerator
- java.lang.Object
-
- org.jbehave.core.reporters.TemplateableViewGenerator
-
- All Implemented Interfaces:
ViewGenerator
- Direct Known Subclasses:
FreemarkerViewGenerator
public class TemplateableViewGenerator extends Object implements ViewGenerator
ViewGenerator, which uses the configuredTemplateProcessorto generate the views from templates. The default view properties are overridable via the methodPropertiesparameter. To override, specify the path to the new template under the appropriate key:"views": the path to global view template, including reports and maps views "maps": the path to the maps view template "reports": the path to the reports view template "decorated": the path to the template to generate a decorated (i.e. styled) single report "nonDecorated": the path to the template to generated a non decorated single report
The view generator provides the following resources:
"decorateNonHtml" = "true" "defaultFormats" = "stats" "viewDirectory" = "view"
- Author:
- Mauro Talevi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemplateableViewGenerator.Reportstatic classTemplateableViewGenerator.ReportCreationFailedstatic classTemplateableViewGenerator.Reportsstatic classTemplateableViewGenerator.TimeFormatterstatic classTemplateableViewGenerator.ViewGenerationFailedForTemplate
-
Constructor Summary
Constructors Constructor Description TemplateableViewGenerator(StoryNameResolver nameResolver, TemplateProcessor processor)TemplateableViewGenerator(StoryNameResolver nameResolver, TemplateProcessor processor, Charset charset)
-
Method Summary
Modifier and Type Method Description PropertiesdefaultViewProperties()voidgenerateMapsView(File outputDirectory, StoryMaps storyMaps, Properties viewProperties)voidgenerateReportsView(File outputDirectory, List<String> formats, Properties viewProperties)ReportsCountgetReportsCount()
-
-
-
Constructor Detail
-
TemplateableViewGenerator
public TemplateableViewGenerator(StoryNameResolver nameResolver, TemplateProcessor processor)
-
TemplateableViewGenerator
public TemplateableViewGenerator(StoryNameResolver nameResolver, TemplateProcessor processor, Charset charset)
-
-
Method Detail
-
defaultViewProperties
public Properties defaultViewProperties()
- Specified by:
defaultViewPropertiesin interfaceViewGenerator
-
generateMapsView
public void generateMapsView(File outputDirectory, StoryMaps storyMaps, Properties viewProperties)
- Specified by:
generateMapsViewin interfaceViewGenerator
-
generateReportsView
public void generateReportsView(File outputDirectory, List<String> formats, Properties viewProperties)
- Specified by:
generateReportsViewin interfaceViewGenerator
-
getReportsCount
public ReportsCount getReportsCount()
- Specified by:
getReportsCountin interfaceViewGenerator
-
-