Package org.jbehave.core.reporters
Class JsonTemplateOutput
java.lang.Object
org.jbehave.core.reporters.NullStoryReporter
org.jbehave.core.reporters.TemplateableOutput
org.jbehave.core.reporters.JsonTemplateOutput
- All Implemented Interfaces:
StoryReporter
A templateable output that generates JSON. By default it uses
FreemarkerProcessor
and template path ftl/jbehave-json-output.ftl,
but custom processors based on other templating systems can be provided and/or
other template paths can be configured.-
Nested Class Summary
Nested classes/interfaces inherited from class org.jbehave.core.reporters.TemplateableOutput
TemplateableOutput.OutputKeywords, TemplateableOutput.OutputLifecycle, TemplateableOutput.OutputMeta, TemplateableOutput.OutputNarrative, TemplateableOutput.OutputParameter, TemplateableOutput.OutputRestart, TemplateableOutput.OutputScenario, TemplateableOutput.OutputStep, TemplateableOutput.OutputStory
-
Constructor Summary
ConstructorDescriptionJsonTemplateOutput
(File file, Keywords keywords) JsonTemplateOutput
(File file, Keywords keywords, TemplateProcessor processor, String templatePath) -
Method Summary
Methods inherited from class org.jbehave.core.reporters.TemplateableOutput
afterExamples, afterScenario, afterStory, beforeExamples, beforeScenario, beforeStory, comment, example, failed, failedOutcomes, givenStories, givenStories, ignorable, lifecycle, narrative, notPerformed, pending, pendingMethods, restarted, restartedStory, scenarioExcluded, storyCancelled, storyExcluded, successful
Methods inherited from class org.jbehave.core.reporters.NullStoryReporter
afterComposedSteps, afterGivenStories, afterScenarios, afterScenarioSteps, afterStoriesSteps, afterStorySteps, beforeComposedSteps, beforeGivenStories, beforeScenarios, beforeScenarioSteps, beforeStep, beforeStoriesSteps, beforeStorySteps, dryRun, pending
-
Constructor Details
-
JsonTemplateOutput
-
JsonTemplateOutput
public JsonTemplateOutput(File file, Keywords keywords, TemplateProcessor processor, String templatePath)
-