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) |
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(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–2015. All rights reserved.