org.jbehave.core.reporters
Class FreemarkerReportRenderer

java.lang.Object
  extended by org.jbehave.core.reporters.FreemarkerReportRenderer
All Implemented Interfaces:
ReportRenderer

public class FreemarkerReportRenderer
extends Object
implements ReportRenderer

Freemarker-based report renderer, using the file outputs generated by the reporters for the given formats. The FTL templates for the index and single views are injectable via the FreemarkerReportRender(Properties) constructor, but defaults are provided. To override, specify the the path the new template under keys "index" and "single".

The report renderer provids the following template resources:

 resources.setProperty("index", "ftl/jbehave-reports-index.ftl");
 resources.setProperty("single", "ftl/jbehave-reports-single.ftl");
 resources.setProperty("renderedDirectory", "rendered");
 resources.setProperty("defaultFormats", "stats");
 

Author:
Mauro Talevi

Nested Class Summary
static class FreemarkerReportRenderer.RendererTemplateNotFoundException
           
static class FreemarkerReportRenderer.RenderingFailedException
           
static class FreemarkerReportRenderer.Report
           
 
Constructor Summary
FreemarkerReportRenderer()
           
FreemarkerReportRenderer(Properties templateResources)
           
 
Method Summary
 void render(File outputDirectory, List<String> formats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreemarkerReportRenderer

public FreemarkerReportRenderer()

FreemarkerReportRenderer

public FreemarkerReportRenderer(Properties templateResources)
Method Detail

render

public void render(File outputDirectory,
                   List<String> formats)
Specified by:
render in interface ReportRenderer


Copyright © 2003-2010. All Rights Reserved.