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
StepMonitors and delegates all invocations to the collected monitors.-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingStepMonitor(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 TypeMethodDescriptionvoidafterPerforming(String step, boolean dryRun, Method method) voidbeforePerforming(String step, boolean dryRun, Method method) voidvoidfoundParameter(String parameter, int position) voidstepMatchesPattern(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance) voidstepMatchesType(String stepAsString, String previousAsString, boolean matchesType, StepType stepType, Method method, Object stepsInstance) voidusingAnnotatedNameForParameter(String name, int position) voidusingNaturalOrderForParameter(int position) voidusingParameterNameForParameter(String name, int position) voidusingStepsContextParameter(String parameter) voidusingTableAnnotatedNameForParameter(String name, int position) voidusingTableParameterNameForParameter(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:
convertedValueOfTypein interfaceStepMonitor
-
stepMatchesType
public void stepMatchesType(String stepAsString, String previousAsString, boolean matchesType, StepType stepType, Method method, Object stepsInstance) - Specified by:
stepMatchesTypein interfaceStepMonitor
-
stepMatchesPattern
public void stepMatchesPattern(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance) - Specified by:
stepMatchesPatternin interfaceStepMonitor
-
foundParameter
- Specified by:
foundParameterin interfaceStepMonitor
-
beforePerforming
- Specified by:
beforePerformingin interfaceStepMonitor
-
afterPerforming
- Specified by:
afterPerformingin interfaceStepMonitor
-
usingAnnotatedNameForParameter
- Specified by:
usingAnnotatedNameForParameterin interfaceStepMonitor
-
usingNaturalOrderForParameter
public void usingNaturalOrderForParameter(int position) - Specified by:
usingNaturalOrderForParameterin interfaceStepMonitor
-
usingParameterNameForParameter
- Specified by:
usingParameterNameForParameterin interfaceStepMonitor
-
usingTableAnnotatedNameForParameter
- Specified by:
usingTableAnnotatedNameForParameterin interfaceStepMonitor
-
usingTableParameterNameForParameter
- Specified by:
usingTableParameterNameForParameterin interfaceStepMonitor
-
usingStepsContextParameter
- Specified by:
usingStepsContextParameterin interfaceStepMonitor
-