@Override public StepType getStepType() { return stepCandidate.getStepType(); }
@Override public StepType getStepType() { return stepCandidate.getStepType(); //To change body of overridden methods use File | Settings | File Templates. }
private StepCandidate findMatchingStep(String stringStep) { for (StepCandidate step : allCandidates) { if (step.matches(stringStep, previousNonAndStep)) { if (step.getStepType() != StepType.AND) { previousNonAndStep = step.getStartingWord() + " "; } return step; } } return null; }
private StepCandidate findMatchingStep(String stringStep) { for (StepCandidate step : allCandidates) { if (step.matches(stringStep, previousNonAndStep)) { if (step.getStepType() != StepType.AND) { previousNonAndStep = step.getStartingWord() + " "; } return step; } } return null; }
public ThucydidesStepCandidate(StepCandidate stepCandidate) { super(stepCandidate.getPatternAsString(), stepCandidate.getPriority(), stepCandidate.getStepType(), stepCandidate.getMethod(), (Class<?>) Extract.field("stepsType").from(stepCandidate), (InjectableStepsFactory) Extract.field("stepsFactory").from(stepCandidate), (Keywords) Extract.field("keywords").from(stepCandidate), new RegexPrefixCapturingPatternParser(), new ParameterConverters(), new ParameterControls()); this.composedOf(stepCandidate.composedSteps()); this.stepCandidate = stepCandidate; }
public SerenityStepCandidate(StepCandidate stepCandidate) { super(stepCandidate.getPatternAsString(), stepCandidate.getPriority(), stepCandidate.getStepType(), stepCandidate.getMethod(), (Class<?>) Extract.field("stepsType").from(stepCandidate), (InjectableStepsFactory) Extract.field("stepsFactory").from(stepCandidate), new StepsContext(), (Keywords) Extract.field("keywords").from(stepCandidate), new RegexPrefixCapturingPatternParser(), new ParameterConverters(), new ParameterControls()); this.composedOf(stepCandidate.composedSteps()); this.stepCandidate = stepCandidate; }