Package org.jbehave.core.reporters
Class ConcurrentStoryReporter
java.lang.Object
org.jbehave.core.reporters.ConcurrentStoryReporter
- All Implemented Interfaces:
StoryReporter
When running a multithreading mode, reports cannot be written concurrently but should
be delayed and invoked only at the end of a story, ensuring synchronization on the delegate
responsible for the reporting.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionConcurrentStoryReporter
(StoryReporter crossReferencing, List<StoryReporter> delegates, boolean multiThreading) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
afterScenario
(Timing timing) void
void
afterScenarioSteps
(StepCollector.Stage stage, Lifecycle.ExecutionType type) void
void
afterStory
(boolean givenStory) void
afterStorySteps
(StepCollector.Stage stage, Lifecycle.ExecutionType type) void
void
beforeExamples
(List<String> steps, ExamplesTable table) void
void
beforeScenario
(Scenario scenario) void
void
void
beforeStep
(Step step) void
void
beforeStory
(Story story, boolean givenStory) void
beforeStorySteps
(StepCollector.Stage stage, Lifecycle.ExecutionType type) void
void
dryRun()
void
void
void
failedOutcomes
(String step, OutcomesTable table) void
givenStories
(List<String> storyPaths) void
givenStories
(GivenStories stories) void
boolean
invoked()
void
void
void
void
notPerformed
(String step) void
Report pending stepvoid
void
pendingMethods
(List<String> methods) Report list of pending methodsvoid
void
restartedStory
(Story story, Throwable cause) void
scenarioExcluded
(Scenario scenario, String filter) void
storyCancelled
(Story story, StoryDuration storyDuration) void
storyExcluded
(Story story, String filter) void
successful
(String step)
-
Constructor Details
-
ConcurrentStoryReporter
public ConcurrentStoryReporter(StoryReporter crossReferencing, List<StoryReporter> delegates, boolean multiThreading)
-
-
Method Details
-
beforeStoriesSteps
- Specified by:
beforeStoriesSteps
in interfaceStoryReporter
-
afterStoriesSteps
- Specified by:
afterStoriesSteps
in interfaceStoryReporter
-
storyExcluded
- Specified by:
storyExcluded
in interfaceStoryReporter
-
beforeStory
- Specified by:
beforeStory
in interfaceStoryReporter
-
afterStory
public void afterStory(boolean givenStory) - Specified by:
afterStory
in interfaceStoryReporter
-
narrative
- Specified by:
narrative
in interfaceStoryReporter
-
lifecycle
- Specified by:
lifecycle
in interfaceStoryReporter
-
beforeStorySteps
- Specified by:
beforeStorySteps
in interfaceStoryReporter
-
afterStorySteps
- Specified by:
afterStorySteps
in interfaceStoryReporter
-
beforeComposedSteps
public void beforeComposedSteps()- Specified by:
beforeComposedSteps
in interfaceStoryReporter
-
afterComposedSteps
public void afterComposedSteps()- Specified by:
afterComposedSteps
in interfaceStoryReporter
-
beforeScenarioSteps
- Specified by:
beforeScenarioSteps
in interfaceStoryReporter
-
afterScenarioSteps
- Specified by:
afterScenarioSteps
in interfaceStoryReporter
-
scenarioExcluded
- Specified by:
scenarioExcluded
in interfaceStoryReporter
-
beforeScenarios
public void beforeScenarios()- Specified by:
beforeScenarios
in interfaceStoryReporter
-
beforeScenario
- Specified by:
beforeScenario
in interfaceStoryReporter
-
afterScenario
- Specified by:
afterScenario
in interfaceStoryReporter
-
afterScenarios
public void afterScenarios()- Specified by:
afterScenarios
in interfaceStoryReporter
-
beforeGivenStories
public void beforeGivenStories()- Specified by:
beforeGivenStories
in interfaceStoryReporter
-
givenStories
- Specified by:
givenStories
in interfaceStoryReporter
-
givenStories
- Specified by:
givenStories
in interfaceStoryReporter
-
afterGivenStories
public void afterGivenStories()- Specified by:
afterGivenStories
in interfaceStoryReporter
-
beforeExamples
- Specified by:
beforeExamples
in interfaceStoryReporter
-
example
- Specified by:
example
in interfaceStoryReporter
-
afterExamples
public void afterExamples()- Specified by:
afterExamples
in interfaceStoryReporter
-
beforeStep
- Specified by:
beforeStep
in interfaceStoryReporter
-
successful
- Specified by:
successful
in interfaceStoryReporter
-
ignorable
- Specified by:
ignorable
in interfaceStoryReporter
-
comment
- Specified by:
comment
in interfaceStoryReporter
-
pending
- Specified by:
pending
in interfaceStoryReporter
-
pending
Description copied from interface:StoryReporter
Report pending step- Specified by:
pending
in interfaceStoryReporter
- Parameters:
step
- string representation of pending step
-
notPerformed
- Specified by:
notPerformed
in interfaceStoryReporter
-
failed
- Specified by:
failed
in interfaceStoryReporter
-
failedOutcomes
- Specified by:
failedOutcomes
in interfaceStoryReporter
-
dryRun
public void dryRun()- Specified by:
dryRun
in interfaceStoryReporter
-
pendingMethods
Description copied from interface:StoryReporter
Report list of pending methods- Specified by:
pendingMethods
in interfaceStoryReporter
- Parameters:
methods
- list of generated methods
-
restarted
- Specified by:
restarted
in interfaceStoryReporter
-
restartedStory
- Specified by:
restartedStory
in interfaceStoryReporter
-
storyCancelled
- Specified by:
storyCancelled
in interfaceStoryReporter
-
getDelegate
-
invoked
public boolean invoked() -
invokeDelayed
public void invokeDelayed()
-