org.jbehave.core.steps
Class PrintStreamStepMonitor

java.lang.Object
  extended by org.jbehave.core.steps.PrintStreamStepMonitor
All Implemented Interfaces:
StepMonitor
Direct Known Subclasses:
SilentStepMonitor

public class PrintStreamStepMonitor
extends Object
implements StepMonitor

StepMonitor that prints to a PrintStream, defaulting to System.out.


Constructor Summary
PrintStreamStepMonitor()
           
PrintStreamStepMonitor(PrintStream output)
           
 
Method Summary
 void convertedValueOfType(String value, Type type, Object converted, Class<?> converterClass)
           
 void foundParameter(String parameter, int position)
           
 void performing(String step, boolean dryRun)
           
protected  void print(PrintStream output, String message)
           
 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 usingTableAnnotatedNameForParameter(String name, int position)
           
 void usingTableParameterNameForParameter(String name, int position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamStepMonitor

public PrintStreamStepMonitor()

PrintStreamStepMonitor

public PrintStreamStepMonitor(PrintStream output)
Method Detail

stepMatchesType

public void stepMatchesType(String step,
                            String previous,
                            boolean matches,
                            StepType stepType,
                            Method method,
                            Object stepsInstance)
Specified by:
stepMatchesType in interface StepMonitor

stepMatchesPattern

public void stepMatchesPattern(String step,
                               boolean matches,
                               StepPattern stepPattern,
                               Method method,
                               Object stepsInstance)
Specified by:
stepMatchesPattern in interface StepMonitor

convertedValueOfType

public void convertedValueOfType(String value,
                                 Type type,
                                 Object converted,
                                 Class<?> converterClass)
Specified by:
convertedValueOfType in interface StepMonitor

performing

public void performing(String step,
                       boolean dryRun)
Specified by:
performing in interface StepMonitor

usingAnnotatedNameForParameter

public void usingAnnotatedNameForParameter(String name,
                                           int position)
Specified by:
usingAnnotatedNameForParameter in interface StepMonitor

usingParameterNameForParameter

public void usingParameterNameForParameter(String name,
                                           int position)
Specified by:
usingParameterNameForParameter in interface StepMonitor

usingTableAnnotatedNameForParameter

public void usingTableAnnotatedNameForParameter(String name,
                                                int position)
Specified by:
usingTableAnnotatedNameForParameter in interface StepMonitor

usingTableParameterNameForParameter

public void usingTableParameterNameForParameter(String name,
                                                int position)
Specified by:
usingTableParameterNameForParameter in interface StepMonitor

usingNaturalOrderForParameter

public void usingNaturalOrderForParameter(int position)
Specified by:
usingNaturalOrderForParameter in interface StepMonitor

foundParameter

public void foundParameter(String parameter,
                           int position)
Specified by:
foundParameter in interface StepMonitor

print

protected void print(PrintStream output,
                     String message)


Copyright © 2003-2012. All Rights Reserved.