Package org.jbehave.core.steps
Class DelegatingStepMonitor
java.lang.Object
org.jbehave.core.steps.DelegatingStepMonitor
- All Implemented Interfaces:
StepMonitor
- Direct Known Subclasses:
ContextStepMonitor
,MatchingStepMonitor
Monitor which collects other
StepMonitor
s and delegates all invocations to the collected monitors.-
Constructor Summary
ConstructorDescriptionDelegatingStepMonitor
(Collection<StepMonitor> delegates) Creates DelegatingStepMonitor with a given collections of delegatesDelegatingStepMonitor
(StepMonitor... delegates) Creates DelegatingStepMonitor with a given varargs of delegates -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterPerforming
(String step, boolean dryRun, Method method) void
beforePerforming
(String step, boolean dryRun, Method method) void
void
foundParameter
(String parameter, int position) void
stepMatchesPattern
(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance) void
stepMatchesType
(String stepAsString, String previousAsString, boolean matchesType, StepType stepType, Method method, Object stepsInstance) void
usingAnnotatedNameForParameter
(String name, int position) void
usingNaturalOrderForParameter
(int position) void
usingParameterNameForParameter
(String name, int position) void
usingStepsContextParameter
(String parameter) void
usingTableAnnotatedNameForParameter
(String name, int position) void
usingTableParameterNameForParameter
(String name, int position)
-
Constructor Details
-
DelegatingStepMonitor
Creates DelegatingStepMonitor with a given collections of delegates- Parameters:
delegates
- the StepMonitor-s to delegate to
-
DelegatingStepMonitor
Creates DelegatingStepMonitor with a given varargs of delegates- Parameters:
delegates
- the StepMonitor-s to delegate to
-
-
Method Details
-
convertedValueOfType
public void convertedValueOfType(String value, Type type, Object converted, Queue<Class<?>> converterClasses) - Specified by:
convertedValueOfType
in interfaceStepMonitor
-
stepMatchesType
public void stepMatchesType(String stepAsString, String previousAsString, boolean matchesType, StepType stepType, Method method, Object stepsInstance) - Specified by:
stepMatchesType
in interfaceStepMonitor
-
stepMatchesPattern
public void stepMatchesPattern(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance) - Specified by:
stepMatchesPattern
in interfaceStepMonitor
-
foundParameter
- Specified by:
foundParameter
in interfaceStepMonitor
-
beforePerforming
- Specified by:
beforePerforming
in interfaceStepMonitor
-
afterPerforming
- Specified by:
afterPerforming
in interfaceStepMonitor
-
usingAnnotatedNameForParameter
- Specified by:
usingAnnotatedNameForParameter
in interfaceStepMonitor
-
usingNaturalOrderForParameter
public void usingNaturalOrderForParameter(int position) - Specified by:
usingNaturalOrderForParameter
in interfaceStepMonitor
-
usingParameterNameForParameter
- Specified by:
usingParameterNameForParameter
in interfaceStepMonitor
-
usingTableAnnotatedNameForParameter
- Specified by:
usingTableAnnotatedNameForParameter
in interfaceStepMonitor
-
usingTableParameterNameForParameter
- Specified by:
usingTableParameterNameForParameter
in interfaceStepMonitor
-
usingStepsContextParameter
- Specified by:
usingStepsContextParameter
in interfaceStepMonitor
-