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
AbstractStepMonitor
that prints to output which should be defined in child implementations.
-
-
Constructor Summary
Constructors Constructor Description PrintingStepMonitor()
-
Method Summary
Modifier and Type Method Description void
afterPerforming(String step, boolean dryRun, Method method)
void
beforePerforming(String step, boolean dryRun, Method method)
void
convertedValueOfType(String value, Type type, Object converted, Queue<Class<?>> converterClasses)
void
foundParameter(String parameter, int position)
protected abstract void
print(String format, Object... args)
void
stepMatchesPattern(String step, boolean matches, StepPattern stepPattern, Method method, Object stepsInstance)
void
stepMatchesType(String step, String previous, boolean matches, 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)
-
-
-
Method Detail
-
stepMatchesType
public void stepMatchesType(String step, String previous, boolean matches, 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
-
convertedValueOfType
public void convertedValueOfType(String value, Type type, Object converted, Queue<Class<?>> converterClasses)
- Specified by:
convertedValueOfType
in interfaceStepMonitor
-
beforePerforming
public void beforePerforming(String step, boolean dryRun, Method method)
- Specified by:
beforePerforming
in interfaceStepMonitor
-
afterPerforming
public void afterPerforming(String step, boolean dryRun, Method method)
- Specified by:
afterPerforming
in interfaceStepMonitor
-
usingAnnotatedNameForParameter
public void usingAnnotatedNameForParameter(String name, int position)
- Specified by:
usingAnnotatedNameForParameter
in interfaceStepMonitor
-
usingParameterNameForParameter
public void usingParameterNameForParameter(String name, int position)
- Specified by:
usingParameterNameForParameter
in interfaceStepMonitor
-
usingTableAnnotatedNameForParameter
public void usingTableAnnotatedNameForParameter(String name, int position)
- Specified by:
usingTableAnnotatedNameForParameter
in interfaceStepMonitor
-
usingTableParameterNameForParameter
public void usingTableParameterNameForParameter(String name, int position)
- Specified by:
usingTableParameterNameForParameter
in interfaceStepMonitor
-
usingNaturalOrderForParameter
public void usingNaturalOrderForParameter(int position)
- Specified by:
usingNaturalOrderForParameter
in interfaceStepMonitor
-
foundParameter
public void foundParameter(String parameter, int position)
- Specified by:
foundParameter
in interfaceStepMonitor
-
usingStepsContextParameter
public void usingStepsContextParameter(String parameter)
- Specified by:
usingStepsContextParameter
in interfaceStepMonitor
-
-