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 classConcurrentStoryReporter.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:
beforeStoriesStepsin interfaceStoryReporter
-
afterStoriesSteps
public void afterStoriesSteps(StepCollector.Stage stage)
- Specified by:
afterStoriesStepsin interfaceStoryReporter
-
storyExcluded
public void storyExcluded(Story story, String filter)
- Specified by:
storyExcludedin interfaceStoryReporter
-
beforeStory
public void beforeStory(Story story, boolean givenStory)
- Specified by:
beforeStoryin interfaceStoryReporter
-
afterStory
public void afterStory(boolean givenStory)
- Specified by:
afterStoryin interfaceStoryReporter
-
narrative
public void narrative(Narrative narrative)
- Specified by:
narrativein interfaceStoryReporter
-
lifecycle
public void lifecycle(Lifecycle lifecycle)
- Specified by:
lifecyclein interfaceStoryReporter
-
beforeStorySteps
public void beforeStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
beforeStoryStepsin interfaceStoryReporter
-
afterStorySteps
public void afterStorySteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
afterStoryStepsin interfaceStoryReporter
-
beforeComposedSteps
public void beforeComposedSteps()
- Specified by:
beforeComposedStepsin interfaceStoryReporter
-
afterComposedSteps
public void afterComposedSteps()
- Specified by:
afterComposedStepsin interfaceStoryReporter
-
beforeScenarioSteps
public void beforeScenarioSteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
beforeScenarioStepsin interfaceStoryReporter
-
afterScenarioSteps
public void afterScenarioSteps(StepCollector.Stage stage, Lifecycle.ExecutionType type)
- Specified by:
afterScenarioStepsin interfaceStoryReporter
-
scenarioExcluded
public void scenarioExcluded(Scenario scenario, String filter)
- Specified by:
scenarioExcludedin interfaceStoryReporter
-
beforeScenarios
public void beforeScenarios()
- Specified by:
beforeScenariosin interfaceStoryReporter
-
beforeScenario
public void beforeScenario(Scenario scenario)
- Specified by:
beforeScenarioin interfaceStoryReporter
-
afterScenario
public void afterScenario(Timing timing)
- Specified by:
afterScenarioin interfaceStoryReporter
-
afterScenarios
public void afterScenarios()
- Specified by:
afterScenariosin interfaceStoryReporter
-
beforeGivenStories
public void beforeGivenStories()
- Specified by:
beforeGivenStoriesin interfaceStoryReporter
-
givenStories
public void givenStories(GivenStories stories)
- Specified by:
givenStoriesin interfaceStoryReporter
-
givenStories
public void givenStories(List<String> storyPaths)
- Specified by:
givenStoriesin interfaceStoryReporter
-
afterGivenStories
public void afterGivenStories()
- Specified by:
afterGivenStoriesin interfaceStoryReporter
-
beforeExamples
public void beforeExamples(List<String> steps, ExamplesTable table)
- Specified by:
beforeExamplesin interfaceStoryReporter
-
example
public void example(Map<String,String> tableRow, int exampleIndex)
- Specified by:
examplein interfaceStoryReporter
-
afterExamples
public void afterExamples()
- Specified by:
afterExamplesin interfaceStoryReporter
-
beforeStep
public void beforeStep(Step step)
- Specified by:
beforeStepin interfaceStoryReporter
-
successful
public void successful(String step)
- Specified by:
successfulin interfaceStoryReporter
-
ignorable
public void ignorable(String step)
- Specified by:
ignorablein interfaceStoryReporter
-
comment
public void comment(String step)
- Specified by:
commentin interfaceStoryReporter
-
pending
public void pending(StepCreator.PendingStep step)
- Specified by:
pendingin interfaceStoryReporter
-
pending
public void pending(String step)
Description copied from interface:StoryReporterReport pending step- Specified by:
pendingin interfaceStoryReporter- Parameters:
step- string representation of pending step
-
notPerformed
public void notPerformed(String step)
- Specified by:
notPerformedin interfaceStoryReporter
-
failed
public void failed(String step, Throwable cause)
- Specified by:
failedin interfaceStoryReporter
-
failedOutcomes
public void failedOutcomes(String step, OutcomesTable table)
- Specified by:
failedOutcomesin interfaceStoryReporter
-
dryRun
public void dryRun()
- Specified by:
dryRunin interfaceStoryReporter
-
pendingMethods
public void pendingMethods(List<String> methods)
Description copied from interface:StoryReporterReport list of pending methods- Specified by:
pendingMethodsin interfaceStoryReporter- Parameters:
methods- list of generated methods
-
restarted
public void restarted(String step, Throwable cause)
- Specified by:
restartedin interfaceStoryReporter
-
restartedStory
public void restartedStory(Story story, Throwable cause)
- Specified by:
restartedStoryin interfaceStoryReporter
-
storyCancelled
public void storyCancelled(Story story, StoryDuration storyDuration)
- Specified by:
storyCancelledin interfaceStoryReporter
-
getDelegate
public StoryReporter getDelegate()
-
invoked
public boolean invoked()
-
invokeDelayed
public void invokeDelayed()
-
-