JsonTemplateOutput.java

  1. package org.jbehave.core.reporters;

  2. import java.io.File;

  3. import org.jbehave.core.configuration.Keywords;

  4. /**
  5.  * A templateable output that generates JSON. By default it uses
  6.  * {@link FreemarkerProcessor} and template path <b>ftl/jbehave-json-output.ftl</b>,
  7.  * but custom processors based on other templating systems can be provided and/or
  8.  * other template paths can be configured.
  9.  */
  10. public class JsonTemplateOutput extends TemplateableOutput {

  11.     public JsonTemplateOutput(File file, Keywords keywords) {
  12.         super(file, keywords, new FreemarkerProcessor(), "ftl/jbehave-json-output.ftl");
  13.     }

  14.     public JsonTemplateOutput(File file, Keywords keywords, TemplateProcessor processor, String templatePath) {
  15.         super(file, keywords, processor, templatePath);
  16.     }

  17. }