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
. The name of a StepCandidate
is the combination of its starting word and its pattern.Modifier and Type | Field and Description |
---|---|
static String |
NAME_FORMAT |
Constructor and Description |
---|
StepCandidate(String patternAsString,
int priority,
StepType stepType,
Method method,
Class<?> stepsType,
InjectableStepsFactory stepsFactory,
StepsContext stepsContext,
Keywords keywords,
StepPatternParser stepPatternParser,
ParameterConverters parameterConverters,
ParameterControls parameterControls) |
public static final String NAME_FORMAT
public StepCandidate(String patternAsString, int priority, StepType stepType, Method method, Class<?> stepsType, InjectableStepsFactory stepsFactory, StepsContext stepsContext, Keywords keywords, StepPatternParser stepPatternParser, ParameterConverters parameterConverters, ParameterControls parameterControls)
public Method getMethod()
public String getName()
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 comment(String stepAsString)
public boolean isPending()
public boolean matches(String stepAsString)
public Step createMatchedStep(String stepAsString, Map<String,String> namedParameters, List<Step> composedSteps)
public Step createMatchedStepUponOutcome(String stepAsString, Map<String,String> namedParameters, List<Step> composedSteps, AfterScenario.Outcome outcome)
public void addComposedSteps(List<Step> steps, String stepAsString, Map<String,String> namedParameters, List<StepCandidate> allCandidates)
Copyright © 2003–2021. All rights reserved.