@Override public String[] composedSteps() { return stepCandidate.composedSteps(); //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; }
@Override public boolean isComposite() { return stepCandidate.isComposite(); //To change body of overridden methods use File | Settings | File Templates. }
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; }
@Override public boolean matches(String stepAsString) { return stepCandidate.matches(stepAsString); }
@Override public StepType getStepType() { return stepCandidate.getStepType(); }
@Override public String getStartingWord() { return stepCandidate.getStartingWord(); }
private void addRegularStep(Description description, String stringStep, StepCandidate step) { testCases++; // JUnit and the Eclipse JUnit view needs to be touched/fixed in order // to make the JUnit view // jump to the corresponding test method accordingly. For now we have to // live, that we end up in // the correct class. Description testDescription = Description.createTestDescription(step.getStepsType(), getJunitSafeString(stringStep)); description.addChild(testDescription); }
@Override public String getPatternAsString() { return stepCandidate.getPatternAsString(); }
@Override public Step createMatchedStep(String stepAsString, Map<String, String> namedParameters) { return stepCandidate.createMatchedStep(stepAsString, namedParameters); }
@Override public Method getMethod() { return stepCandidate.getMethod(); }
@Override public Integer getPriority() { return stepCandidate.getPriority(); }
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; }
@Override public boolean matches(String stepAsString) { return stepCandidate.matches(stepAsString); //To change body of overridden methods use File | Settings | File Templates. }
@Override public StepType getStepType() { return stepCandidate.getStepType(); //To change body of overridden methods use File | Settings | File Templates. }
@Override public String getStartingWord() { return stepCandidate.getStartingWord(); //To change body of overridden methods use File | Settings | File Templates. }
private void addRegularStep(Description description, String stringStep, StepCandidate step) { testCases++; // JUnit and the Eclipse JUnit view needs to be touched/fixed in order // to make the JUnit view // jump to the corresponding test method accordingly. For now we have to // live, that we end up in // the correct class. description.addChild(Description.createTestDescription(step.getStepsType(), getJunitSafeString(stringStep))); }
@Override public String getPatternAsString() { return stepCandidate.getPatternAsString(); //To change body of overridden methods use File | Settings | File Templates. }
@Override public Step createMatchedStep(String stepAsString, Map<String, String> namedParameters) { return stepCandidate.createMatchedStep(stepAsString, namedParameters); //To change body of overridden methods use File | Settings | File Templates. }
@Override public Method getMethod() { return stepCandidate.getMethod(); //To change body of overridden methods use File | Settings | File Templates. }