public class StepCandidate extends Object
Given
,
When
, Then
in a steps instance class. The StepCandidate 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
.Constructor and Description |
---|
StepCandidate(String patternAsString,
int priority,
StepType stepType,
Method method,
Class<?> stepsType,
InjectableStepsFactory stepsFactory,
Keywords keywords,
StepPatternParser stepPatternParser,
ParameterConverters parameterConverters,
ParameterControls parameterControls) |
Modifier and Type | Method and Description |
---|---|
void |
addComposedSteps(List<Step> steps,
String stepAsString,
Map<String,String> namedParameters,
List<StepCandidate> allCandidates) |
void |
composedOf(String[] steps) |
String[] |
composedSteps() |
Step |
createMatchedStep(String stepAsString,
Map<String,String> namedParameters) |
Step |
createMatchedStepUponOutcome(String stepAsString,
Map<String,String> namedParameters,
AfterScenario.Outcome outcome) |
void |
doDryRun(boolean dryRun) |
Method |
getMethod() |
String |
getPatternAsString() |
Integer |
getPriority() |
String |
getStartingWord() |
Object |
getStepsInstance() |
Class<?> |
getStepsType() |
StepType |
getStepType() |
boolean |
ignore(String stepAsString) |
boolean |
isAndStep(String stepAsString) |
boolean |
isComposite() |
boolean |
isIgnorableStep(String stepAsString) |
boolean |
isPending() |
boolean |
matches(String stepAsString) |
boolean |
matches(String step,
String previousNonAndStep) |
String |
toString() |
void |
useParanamer(com.thoughtworks.paranamer.Paranamer paranamer) |
void |
useStepMonitor(StepMonitor stepMonitor) |
public StepCandidate(String patternAsString, int priority, StepType stepType, Method method, Class<?> stepsType, InjectableStepsFactory stepsFactory, Keywords keywords, StepPatternParser stepPatternParser, ParameterConverters parameterConverters, ParameterControls parameterControls)
public Method getMethod()
public Integer getPriority()
public String getPatternAsString()
public Object getStepsInstance()
public Class<?> getStepsType()
public StepType getStepType()
public String getStartingWord()
public void useStepMonitor(StepMonitor stepMonitor)
public void doDryRun(boolean dryRun)
public void useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
public void composedOf(String[] steps)
public boolean isComposite()
public String[] composedSteps()
public boolean ignore(String stepAsString)
public boolean isPending()
public boolean matches(String stepAsString)
public Step createMatchedStep(String stepAsString, Map<String,String> namedParameters)
public Step createMatchedStepUponOutcome(String stepAsString, Map<String,String> namedParameters, AfterScenario.Outcome outcome)
public void addComposedSteps(List<Step> steps, String stepAsString, Map<String,String> namedParameters, List<StepCandidate> allCandidates)
public boolean isAndStep(String stepAsString)
public boolean isIgnorableStep(String stepAsString)
Copyright © 2003-2014. All Rights Reserved.