Class StepFinder

    • Constructor Detail

      • StepFinder

        public StepFinder​(StepFinder.PrioritisingStrategy prioritisingStrategy)
        Creates a StepFinder with a custom strategy
        Parameters:
        prioritisingStrategy - the PrioritisingStrategy
      • StepFinder

        public StepFinder​(StepConditionMatcher stepConditionMatcher)
        Creates a StepFinder with a custom step condition matcher
        Parameters:
        stepConditionMatcher - the StepConditionMatcher
    • Method Detail

      • findMatching

        public List<Stepdoc> findMatching​(String stepAsText,
                                          List<CandidateSteps> candidateSteps)
        Finds matching steps, represented as Stepdocs, for a given textual step and a list of CandidateSteps.
        Parameters:
        stepAsText - the textual step
        candidateSteps - the List of CandidateSteps
        Returns:
        The list of Stepdocs, one for each matched StepCandidate.
      • stepsInstances

        public List<Object> stepsInstances​(List<CandidateSteps> candidateSteps)
        Returns the steps instances associated to CandidateSteps
        Parameters:
        candidateSteps - the List of CandidateSteps
        Returns:
        The List of steps instances