Package org.jbehave.core.reporters
Class ConcurrentStoryReporter
- java.lang.Object
-
- org.jbehave.core.reporters.ConcurrentStoryReporter
-
- All Implemented Interfaces:
StoryReporter
public class ConcurrentStoryReporter extends Object implements 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
Nested Classes Modifier and Type Class Description static class
ConcurrentStoryReporter.DelayedMethod
-
Constructor Summary
Constructors Constructor Description ConcurrentStoryReporter(StoryReporter crossReferencing, List<StoryReporter> delegates, boolean multiThreading)
-
Method Summary
-
-
-
Constructor Detail
-
ConcurrentStoryReporter
public ConcurrentStoryReporter(StoryReporter crossReferencing, List<StoryReporter> delegates, boolean multiThreading)
-
-
Method Detail
-
beforeStoriesSteps
public void beforeStoriesSteps(StepCollector.Stage stage)
- Specified by:
beforeStoriesSteps
in interfaceStoryReporter
-
afterStoriesSteps
public void afterStoriesSteps(StepCollector.Stage stage)
- Specified by:
afterStoriesSteps
in interfaceStoryReporter
-
storyExcluded
public void storyExcluded(Story story, String filter)
- Specified by:
storyExcluded
in interfaceStoryReporter
-
beforeStory
public void beforeStory(Story story, boolean givenStory)
- Specified by:
beforeStory
in interfaceStoryReporter
-
afterStory
public void afterStory(boolean givenStory)
- Specified by:
afterStory
in interfaceStoryReporter
-
narrative
public void narrative(Narrative narrative)
- Specified by:
narrative
in interfaceStoryReporter
-
lifecycle
public void lifecycle(Lifecycle lifecycle)
- Specified by:
lifecycle
in interfaceStoryReporter
-
beforeStorySteps
public void beforeStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
beforeStorySteps
in interfaceStoryReporter
-
afterStorySteps
public void afterStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
afterStorySteps
in interfaceStoryReporter
-
beforeComposedSteps
public void beforeComposedSteps()
- Specified by:
beforeComposedSteps
in interfaceStoryReporter
-
afterComposedSteps
public void afterComposedSteps()
- Specified by:
afterComposedSteps
in interfaceStoryReporter
-
beforeScenarioSteps
public void beforeScenarioSteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
beforeScenarioSteps
in interfaceStoryReporter
-
afterScenarioSteps
public void afterScenarioSteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
afterScenarioSteps
in interfaceStoryReporter
-
scenarioExcluded
public void scenarioExcluded(Scenario scenario, String filter)
- Specified by:
scenarioExcluded
in interfaceStoryReporter
-
beforeScenarios
public void beforeScenarios()
- Specified by:
beforeScenarios
in interfaceStoryReporter
-
beforeScenario
public void beforeScenario(Scenario scenario)
- Specified by:
beforeScenario
in interfaceStoryReporter
-
afterScenario
public void afterScenario(Timing timing)
- Specified by:
afterScenario
in interfaceStoryReporter
-
afterScenarios
public void afterScenarios()
- Specified by:
afterScenarios
in interfaceStoryReporter
-
beforeGivenStories
public void beforeGivenStories()
- Specified by:
beforeGivenStories
in interfaceStoryReporter
-
givenStories
public void givenStories(GivenStories stories)
- Specified by:
givenStories
in interfaceStoryReporter
-
givenStories
public void givenStories(List<String> storyPaths)
- Specified by:
givenStories
in interfaceStoryReporter
-
afterGivenStories
public void afterGivenStories()
- Specified by:
afterGivenStories
in interfaceStoryReporter
-
beforeExamples
public void beforeExamples(List<String> steps, ExamplesTable table)
- Specified by:
beforeExamples
in interfaceStoryReporter
-
example
public void example(Map<String,String> tableRow, int exampleIndex)
- Specified by:
example
in interfaceStoryReporter
-
afterExamples
public void afterExamples()
- Specified by:
afterExamples
in interfaceStoryReporter
-
beforeStep
public void beforeStep(Step step)
- Specified by:
beforeStep
in interfaceStoryReporter
-
successful
public void successful(String step)
- Specified by:
successful
in interfaceStoryReporter
-
ignorable
public void ignorable(String step)
- Specified by:
ignorable
in interfaceStoryReporter
-
comment
public void comment(String step)
- Specified by:
comment
in interfaceStoryReporter
-
pending
public void pending(StepCreator.PendingStep step)
- Specified by:
pending
in interfaceStoryReporter
-
pending
public void pending(String step)
Description copied from interface:StoryReporter
Report pending step- Specified by:
pending
in interfaceStoryReporter
- Parameters:
step
- string representation of pending step
-
notPerformed
public void notPerformed(String step)
- Specified by:
notPerformed
in interfaceStoryReporter
-
failed
public void failed(String step, Throwable cause)
- Specified by:
failed
in interfaceStoryReporter
-
failedOutcomes
public void failedOutcomes(String step, OutcomesTable table)
- Specified by:
failedOutcomes
in interfaceStoryReporter
-
dryRun
public void dryRun()
- Specified by:
dryRun
in interfaceStoryReporter
-
pendingMethods
public void pendingMethods(List<String> methods)
Description copied from interface:StoryReporter
Report list of pending methods- Specified by:
pendingMethods
in interfaceStoryReporter
- Parameters:
methods
- list of generated methods
-
restarted
public void restarted(String step, Throwable cause)
- Specified by:
restarted
in interfaceStoryReporter
-
restartedStory
public void restartedStory(Story story, Throwable cause)
- Specified by:
restartedStory
in interfaceStoryReporter
-
storyCancelled
public void storyCancelled(Story story, StoryDuration storyDuration)
- Specified by:
storyCancelled
in interfaceStoryReporter
-
getDelegate
public StoryReporter getDelegate()
-
invoked
public boolean invoked()
-
invokeDelayed
public void invokeDelayed()
-
-