Package org.jbehave.core.reporters
Class SilentSuccessFilter
- java.lang.Object
-
- org.jbehave.core.reporters.NullStoryReporter
-
- org.jbehave.core.reporters.SilentSuccessFilter
-
- All Implemented Interfaces:
StoryReporter
public class SilentSuccessFilter extends NullStoryReporter
Filters out the reports from all stories that pass, The delegate receives output only for failing or pending stories.
-
-
Constructor Summary
Constructors Constructor Description SilentSuccessFilter(StoryReporter delegate)
-
Method Summary
Modifier and Type Method Description void
afterExamples()
void
afterScenario(Timing timing)
void
afterStory(boolean givenStory)
void
beforeExamples(List<String> steps, ExamplesTable table)
void
beforeScenario(Scenario scenario)
void
beforeStory(Story story, boolean givenStory)
void
comment(String step)
void
dryRun()
void
example(Map<String,String> tableRow, int exampleIndex)
void
failed(String step, Throwable cause)
void
failedOutcomes(String step, OutcomesTable table)
void
givenStories(List<String> storyPaths)
void
givenStories(GivenStories givenStories)
void
ignorable(String step)
void
lifecycle(Lifecycle lifecycle)
void
narrative(Narrative narrative)
void
notPerformed(String step)
void
pending(StepCreator.PendingStep step)
void
pendingMethods(List<String> methods)
Report list of pending methodsvoid
scenarioExcluded(Scenario scenario, String filter)
void
storyExcluded(Story story, String filter)
void
successful(String step)
-
Methods inherited from class org.jbehave.core.reporters.NullStoryReporter
afterComposedSteps, afterGivenStories, afterScenarios, afterScenarioSteps, afterStoriesSteps, afterStorySteps, beforeComposedSteps, beforeGivenStories, beforeScenarios, beforeScenarioSteps, beforeStep, beforeStoriesSteps, beforeStorySteps, pending, restarted, restartedStory, storyCancelled
-
-
-
-
Constructor Detail
-
SilentSuccessFilter
public SilentSuccessFilter(StoryReporter delegate)
-
-
Method Detail
-
dryRun
public void dryRun()
- Specified by:
dryRun
in interfaceStoryReporter
- Overrides:
dryRun
in classNullStoryReporter
-
pendingMethods
public void pendingMethods(List<String> methods)
Description copied from interface:StoryReporter
Report list of pending methods- Specified by:
pendingMethods
in interfaceStoryReporter
- Overrides:
pendingMethods
in classNullStoryReporter
- Parameters:
methods
- list of generated methods
-
beforeStory
public void beforeStory(Story story, boolean givenStory)
- Specified by:
beforeStory
in interfaceStoryReporter
- Overrides:
beforeStory
in classNullStoryReporter
-
narrative
public void narrative(Narrative narrative)
- Specified by:
narrative
in interfaceStoryReporter
- Overrides:
narrative
in classNullStoryReporter
-
lifecycle
public void lifecycle(Lifecycle lifecycle)
- Specified by:
lifecycle
in interfaceStoryReporter
- Overrides:
lifecycle
in classNullStoryReporter
-
storyExcluded
public void storyExcluded(Story story, String filter)
- Specified by:
storyExcluded
in interfaceStoryReporter
- Overrides:
storyExcluded
in classNullStoryReporter
-
afterStory
public void afterStory(boolean givenStory)
- Specified by:
afterStory
in interfaceStoryReporter
- Overrides:
afterStory
in classNullStoryReporter
-
ignorable
public void ignorable(String step)
- Specified by:
ignorable
in interfaceStoryReporter
- Overrides:
ignorable
in classNullStoryReporter
-
comment
public void comment(String step)
- Specified by:
comment
in interfaceStoryReporter
- Overrides:
comment
in classNullStoryReporter
-
failed
public void failed(String step, Throwable cause)
- Specified by:
failed
in interfaceStoryReporter
- Overrides:
failed
in classNullStoryReporter
-
failedOutcomes
public void failedOutcomes(String step, OutcomesTable table)
- Specified by:
failedOutcomes
in interfaceStoryReporter
- Overrides:
failedOutcomes
in classNullStoryReporter
-
notPerformed
public void notPerformed(String step)
- Specified by:
notPerformed
in interfaceStoryReporter
- Overrides:
notPerformed
in classNullStoryReporter
-
pending
public void pending(StepCreator.PendingStep step)
- Specified by:
pending
in interfaceStoryReporter
- Overrides:
pending
in classNullStoryReporter
-
successful
public void successful(String step)
- Specified by:
successful
in interfaceStoryReporter
- Overrides:
successful
in classNullStoryReporter
-
afterScenario
public void afterScenario(Timing timing)
- Specified by:
afterScenario
in interfaceStoryReporter
- Overrides:
afterScenario
in classNullStoryReporter
-
beforeScenario
public void beforeScenario(Scenario scenario)
- Specified by:
beforeScenario
in interfaceStoryReporter
- Overrides:
beforeScenario
in classNullStoryReporter
-
scenarioExcluded
public void scenarioExcluded(Scenario scenario, String filter)
- Specified by:
scenarioExcluded
in interfaceStoryReporter
- Overrides:
scenarioExcluded
in classNullStoryReporter
-
givenStories
public void givenStories(GivenStories givenStories)
- Specified by:
givenStories
in interfaceStoryReporter
- Overrides:
givenStories
in classNullStoryReporter
-
givenStories
public void givenStories(List<String> storyPaths)
- Specified by:
givenStories
in interfaceStoryReporter
- Overrides:
givenStories
in classNullStoryReporter
-
beforeExamples
public void beforeExamples(List<String> steps, ExamplesTable table)
- Specified by:
beforeExamples
in interfaceStoryReporter
- Overrides:
beforeExamples
in classNullStoryReporter
-
example
public void example(Map<String,String> tableRow, int exampleIndex)
- Specified by:
example
in interfaceStoryReporter
- Overrides:
example
in classNullStoryReporter
-
afterExamples
public void afterExamples()
- Specified by:
afterExamples
in interfaceStoryReporter
- Overrides:
afterExamples
in classNullStoryReporter
-
-