Package org.jbehave.core.steps
Class PrintingStepMonitor
- java.lang.Object
-
- org.jbehave.core.steps.PrintingStepMonitor
-
- All Implemented Interfaces:
StepMonitor
- Direct Known Subclasses:
PrintStreamStepMonitor,SilentStepMonitor
public abstract class PrintingStepMonitor extends Object implements StepMonitor
AbstractStepMonitorthat prints to output which should be defined in child implementations.
-
-
Constructor Summary
Constructors Constructor Description PrintingStepMonitor()
-
Method Summary
Modifier and Type Method Description voidafterPerforming(String step, boolean dryRun, Method method)voidbeforePerforming(String step, boolean dryRun, Method method)voidconvertedValueOfType(String value, Type type, Object converted, Queue<Class<?>> converterClasses)voidfoundParameter(String parameter, int position)protected abstract voidprint(String format, Object... args)voidstepMatchesPattern(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance)voidstepMatchesType(String step, String previous, boolean matches, 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)
-
-
-
Method Detail
-
stepMatchesType
public void stepMatchesType(String step, String previous, boolean matches, 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
-
convertedValueOfType
public void convertedValueOfType(String value, Type type, Object converted, Queue<Class<?>> converterClasses)
- Specified by:
convertedValueOfTypein interfaceStepMonitor
-
beforePerforming
public void beforePerforming(String step, boolean dryRun, Method method)
- Specified by:
beforePerformingin interfaceStepMonitor
-
afterPerforming
public void afterPerforming(String step, boolean dryRun, Method method)
- Specified by:
afterPerformingin interfaceStepMonitor
-
usingAnnotatedNameForParameter
public void usingAnnotatedNameForParameter(String name, int position)
- Specified by:
usingAnnotatedNameForParameterin interfaceStepMonitor
-
usingParameterNameForParameter
public void usingParameterNameForParameter(String name, int position)
- Specified by:
usingParameterNameForParameterin interfaceStepMonitor
-
usingTableAnnotatedNameForParameter
public void usingTableAnnotatedNameForParameter(String name, int position)
- Specified by:
usingTableAnnotatedNameForParameterin interfaceStepMonitor
-
usingTableParameterNameForParameter
public void usingTableParameterNameForParameter(String name, int position)
- Specified by:
usingTableParameterNameForParameterin interfaceStepMonitor
-
usingNaturalOrderForParameter
public void usingNaturalOrderForParameter(int position)
- Specified by:
usingNaturalOrderForParameterin interfaceStepMonitor
-
foundParameter
public void foundParameter(String parameter, int position)
- Specified by:
foundParameterin interfaceStepMonitor
-
usingStepsContextParameter
public void usingStepsContextParameter(String parameter)
- Specified by:
usingStepsContextParameterin interfaceStepMonitor
-
-