Package org.jbehave.core.reporters
Class TemplateableOutput
- java.lang.Object
-
- org.jbehave.core.reporters.NullStoryReporter
-
- org.jbehave.core.reporters.TemplateableOutput
-
- All Implemented Interfaces:
StoryReporter
- Direct Known Subclasses:
HtmlTemplateOutput,JsonTemplateOutput,XmlTemplateOutput
public class TemplateableOutput extends NullStoryReporter
Story reporter that outputs to a template.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemplateableOutput.OutputKeywordsstatic classTemplateableOutput.OutputLifecyclestatic classTemplateableOutput.OutputMetastatic classTemplateableOutput.OutputNarrativestatic classTemplateableOutput.OutputParameterstatic classTemplateableOutput.OutputRestartstatic classTemplateableOutput.OutputScenariostatic classTemplateableOutput.OutputStepstatic classTemplateableOutput.OutputStory
-
Constructor Summary
Constructors Constructor Description TemplateableOutput(File file, Keywords keywords, TemplateProcessor processor, String templatePath)
-
Method Summary
Modifier and Type Method Description voidafterExamples()voidafterScenario(Timing timing)voidafterStory(boolean givenStory)voidbeforeExamples(List<String> steps, ExamplesTable table)voidbeforeScenario(Scenario scenario)voidbeforeStory(Story story, boolean givenStory)voidcomment(String step)voidexample(Map<String,String> parameters, int exampleIndex)voidfailed(String step, Throwable storyFailure)voidfailedOutcomes(String step, OutcomesTable table)voidgivenStories(List<String> storyPaths)voidgivenStories(GivenStories givenStories)voidignorable(String step)voidlifecycle(Lifecycle lifecycle)voidnarrative(Narrative narrative)voidnotPerformed(String step)voidpending(StepCreator.PendingStep step)voidpendingMethods(List<String> methods)Report list of pending methodsvoidrestarted(String step, Throwable cause)voidrestartedStory(Story story, Throwable cause)voidscenarioExcluded(Scenario scenario, String filter)voidstoryCancelled(Story story, StoryDuration storyDuration)voidstoryExcluded(Story story, String filter)voidsuccessful(String step)-
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 Detail
-
TemplateableOutput
public TemplateableOutput(File file, Keywords keywords, TemplateProcessor processor, String templatePath)
-
-
Method Detail
-
storyExcluded
public void storyExcluded(Story story, String filter)
- Specified by:
storyExcludedin interfaceStoryReporter- Overrides:
storyExcludedin classNullStoryReporter
-
beforeStory
public void beforeStory(Story story, boolean givenStory)
- Specified by:
beforeStoryin interfaceStoryReporter- Overrides:
beforeStoryin classNullStoryReporter
-
narrative
public void narrative(Narrative narrative)
- Specified by:
narrativein interfaceStoryReporter- Overrides:
narrativein classNullStoryReporter
-
lifecycle
public void lifecycle(Lifecycle lifecycle)
- Specified by:
lifecyclein interfaceStoryReporter- Overrides:
lifecyclein classNullStoryReporter
-
scenarioExcluded
public void scenarioExcluded(Scenario scenario, String filter)
- Specified by:
scenarioExcludedin interfaceStoryReporter- Overrides:
scenarioExcludedin classNullStoryReporter
-
beforeScenario
public void beforeScenario(Scenario scenario)
- Specified by:
beforeScenarioin interfaceStoryReporter- Overrides:
beforeScenarioin classNullStoryReporter
-
successful
public void successful(String step)
- Specified by:
successfulin interfaceStoryReporter- Overrides:
successfulin classNullStoryReporter
-
ignorable
public void ignorable(String step)
- Specified by:
ignorablein interfaceStoryReporter- Overrides:
ignorablein classNullStoryReporter
-
comment
public void comment(String step)
- Specified by:
commentin interfaceStoryReporter- Overrides:
commentin classNullStoryReporter
-
pending
public void pending(StepCreator.PendingStep step)
- Specified by:
pendingin interfaceStoryReporter- Overrides:
pendingin classNullStoryReporter
-
notPerformed
public void notPerformed(String step)
- Specified by:
notPerformedin interfaceStoryReporter- Overrides:
notPerformedin classNullStoryReporter
-
failed
public void failed(String step, Throwable storyFailure)
- Specified by:
failedin interfaceStoryReporter- Overrides:
failedin classNullStoryReporter
-
failedOutcomes
public void failedOutcomes(String step, OutcomesTable table)
- Specified by:
failedOutcomesin interfaceStoryReporter- Overrides:
failedOutcomesin classNullStoryReporter
-
givenStories
public void givenStories(GivenStories givenStories)
- Specified by:
givenStoriesin interfaceStoryReporter- Overrides:
givenStoriesin classNullStoryReporter
-
givenStories
public void givenStories(List<String> storyPaths)
- Specified by:
givenStoriesin interfaceStoryReporter- Overrides:
givenStoriesin classNullStoryReporter
-
beforeExamples
public void beforeExamples(List<String> steps, ExamplesTable table)
- Specified by:
beforeExamplesin interfaceStoryReporter- Overrides:
beforeExamplesin classNullStoryReporter
-
example
public void example(Map<String,String> parameters, int exampleIndex)
- Specified by:
examplein interfaceStoryReporter- Overrides:
examplein classNullStoryReporter
-
afterExamples
public void afterExamples()
- Specified by:
afterExamplesin interfaceStoryReporter- Overrides:
afterExamplesin classNullStoryReporter
-
afterScenario
public void afterScenario(Timing timing)
- Specified by:
afterScenarioin interfaceStoryReporter- Overrides:
afterScenarioin classNullStoryReporter
-
pendingMethods
public void pendingMethods(List<String> methods)
Description copied from interface:StoryReporterReport list of pending methods- Specified by:
pendingMethodsin interfaceStoryReporter- Overrides:
pendingMethodsin classNullStoryReporter- Parameters:
methods- list of generated methods
-
restarted
public void restarted(String step, Throwable cause)
- Specified by:
restartedin interfaceStoryReporter- Overrides:
restartedin classNullStoryReporter
-
restartedStory
public void restartedStory(Story story, Throwable cause)
- Specified by:
restartedStoryin interfaceStoryReporter- Overrides:
restartedStoryin classNullStoryReporter
-
storyCancelled
public void storyCancelled(Story story, StoryDuration storyDuration)
- Specified by:
storyCancelledin interfaceStoryReporter- Overrides:
storyCancelledin classNullStoryReporter
-
afterStory
public void afterStory(boolean givenStory)
- Specified by:
afterStoryin interfaceStoryReporter- Overrides:
afterStoryin classNullStoryReporter
-
-