Package org.jbehave.core.junit
Class JUnit4StoryReporter
- java.lang.Object
-
- org.jbehave.core.reporters.NullStoryReporter
-
- org.jbehave.core.junit.JUnit4StoryReporter
-
- All Implemented Interfaces:
StoryReporter
public class JUnit4StoryReporter extends NullStoryReporter
-
-
Constructor Summary
Constructors Constructor Description JUnit4StoryReporter(org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description rootDescription, Keywords keywords)
-
Method Summary
Modifier and Type Method Description voidafterScenario(Timing timing)voidafterStoriesSteps(StepCollector.Stage stage)voidafterStory(boolean isGivenStory)voidbeforeScenario(Scenario scenario)voidbeforeStep(Step step)voidbeforeStoriesSteps(StepCollector.Stage stage)voidbeforeStory(Story story, boolean isGivenStory)voidbeforeStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)voidexample(Map<String,String> tableRow, int exampleIndex)voidfailed(String step, Throwable e)voidignorable(String step)voidnotPerformed(String step)voidpending(StepCreator.PendingStep step)voidscenarioExcluded(Scenario scenario, String filter)Notify the IDE that the current step and scenario is not being executed.voidsuccessful(String step)voidusePendingStepStrategy(PendingStepStrategy pendingStepStrategy)-
Methods inherited from class org.jbehave.core.reporters.NullStoryReporter
afterComposedSteps, afterExamples, afterGivenStories, afterScenarios, afterScenarioSteps, afterStorySteps, beforeComposedSteps, beforeExamples, beforeGivenStories, beforeScenarios, beforeScenarioSteps, comment, dryRun, failedOutcomes, givenStories, givenStories, lifecycle, narrative, pending, pendingMethods, restarted, restartedStory, storyCancelled, storyExcluded
-
-
-
-
Constructor Detail
-
JUnit4StoryReporter
public JUnit4StoryReporter(org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description rootDescription, Keywords keywords)
-
-
Method Detail
-
beforeStoriesSteps
public void beforeStoriesSteps(StepCollector.Stage stage)
- Specified by:
beforeStoriesStepsin interfaceStoryReporter- Overrides:
beforeStoriesStepsin classNullStoryReporter
-
afterStoriesSteps
public void afterStoriesSteps(StepCollector.Stage stage)
- Specified by:
afterStoriesStepsin interfaceStoryReporter- Overrides:
afterStoriesStepsin classNullStoryReporter
-
beforeStory
public void beforeStory(Story story, boolean isGivenStory)
- Specified by:
beforeStoryin interfaceStoryReporter- Overrides:
beforeStoryin classNullStoryReporter
-
beforeStorySteps
public void beforeStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
beforeStoryStepsin interfaceStoryReporter- Overrides:
beforeStoryStepsin classNullStoryReporter
-
afterStory
public void afterStory(boolean isGivenStory)
- Specified by:
afterStoryin interfaceStoryReporter- Overrides:
afterStoryin classNullStoryReporter
-
beforeScenario
public void beforeScenario(Scenario scenario)
- Specified by:
beforeScenarioin interfaceStoryReporter- Overrides:
beforeScenarioin classNullStoryReporter
-
afterScenario
public void afterScenario(Timing timing)
- Specified by:
afterScenarioin interfaceStoryReporter- Overrides:
afterScenarioin classNullStoryReporter
-
example
public void example(Map<String,String> tableRow, int exampleIndex)
- Specified by:
examplein interfaceStoryReporter- Overrides:
examplein classNullStoryReporter
-
beforeStep
public void beforeStep(Step step)
- Specified by:
beforeStepin interfaceStoryReporter- Overrides:
beforeStepin classNullStoryReporter
-
failed
public void failed(String step, Throwable e)
- Specified by:
failedin interfaceStoryReporter- Overrides:
failedin classNullStoryReporter
-
successful
public void successful(String step)
- Specified by:
successfulin interfaceStoryReporter- Overrides:
successfulin classNullStoryReporter
-
pending
public void pending(StepCreator.PendingStep step)
- Specified by:
pendingin interfaceStoryReporter- Overrides:
pendingin classNullStoryReporter
-
ignorable
public void ignorable(String step)
- Specified by:
ignorablein interfaceStoryReporter- Overrides:
ignorablein classNullStoryReporter
-
notPerformed
public void notPerformed(String step)
- Specified by:
notPerformedin interfaceStoryReporter- Overrides:
notPerformedin classNullStoryReporter
-
scenarioExcluded
public void scenarioExcluded(Scenario scenario, String filter)
Notify the IDE that the current step and scenario is not being executed. Reason is a JBehave meta tag is filtering out this scenario.- Specified by:
scenarioExcludedin interfaceStoryReporter- Overrides:
scenarioExcludedin classNullStoryReporter- Parameters:
scenario- Scenariofilter- Filter
-
usePendingStepStrategy
public void usePendingStepStrategy(PendingStepStrategy pendingStepStrategy)
-
-