Class Step

  • All Implemented Interfaces:
    Component, Visitable

    public class Step
    extends Object
    implements Component
    A step in a scenario.

    Represents an action to be done when performing the scenario. As a Component, it is a constituent od a StepList (which itself can constitute another StepList)

    See Also:
    Scenario, StepList
    • Constructor Detail

      • Step

        public Step​(String text)
        Create a step with a given text describing the action to be taken.
        Parameters:
        text - string representing the step.
    • Method Detail

      • getText

        public String getText()
        Get a string representing the step in a scenario.
        Returns:
        text of the step
      • accept

        public void accept​(Visitor visitor)
        Description copied from interface: Visitable
        Accept a visitor and pass the current instance's content to it.
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - Visitor to give information to.
        See Also:
        Visitor