org.jbehave.core.steps
Class CandidateStep
java.lang.Object
org.jbehave.core.steps.CandidateStep
public class CandidateStep
- extends java.lang.Object
A candidate step is associated to a Java method annotated with Given,
When, Then in a CandidatesSteps instance class.
The candidate step is responsible for matching the textual step against the
pattern contained in the method annotation via the StepMatcher and
for the creation of the matched executable step via the StepCreator.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CandidateStep
public CandidateStep(java.lang.String patternAsString,
int priority,
StepType stepType,
java.lang.reflect.Method method,
java.lang.Object stepsInstance,
StepPatternParser stepPatternParser,
ParameterConverters parameterConverters,
java.util.Map<StepType,java.lang.String> startingWords)
getMethod
public java.lang.reflect.Method getMethod()
getPriority
public java.lang.Integer getPriority()
getStepType
public StepType getStepType()
getPatternAsString
public java.lang.String getPatternAsString()
useStepMonitor
public void useStepMonitor(StepMonitor stepMonitor)
doDryRun
public void doDryRun(boolean dryRun)
useParanamer
public void useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
ignore
public boolean ignore(java.lang.String stepAsString)
matches
public boolean matches(java.lang.String stepAsString)
matches
public boolean matches(java.lang.String step,
java.lang.String previousNonAndStep)
isAndStep
public boolean isAndStep(java.lang.String stepAsString)
createMatchedStep
public Step createMatchedStep(java.lang.String stepAsString,
java.util.Map<java.lang.String,java.lang.String> tableRow)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2003-2010. All Rights Reserved.