Interface En

  • All Superinterfaces:
    LambdaGlue

    @API(status=STABLE)
    public interface En
    extends LambdaGlue
    English

    To execute steps in a feature file the steps must be connected to executable code. This can be done by implementing this interface.

    The parameters extracted from the step by the expression along with the data table or doc string argument are provided as arguments to the lambda expression.

    The types of the parameters are determined by the cucumber or regular expression.

    The type of the data table or doc string argument is determined by the argument name value. When none is provided cucumber will attempt to transform the data table or doc string to the the type of last argument.

    • Method Detail

      • And

        default void And​(String expression,
                         StepDefinitionBody.A0 body)
        Creates a new step definition.
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with no parameters
      • And

        default <T1> void And​(String expression,
                              StepDefinitionBody.A1<T1> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 1 parameters
      • And

        default <T1,​T2> void And​(String expression,
                                       StepDefinitionBody.A2<T1,​T2> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 2 parameters
      • And

        default <T1,​T2,​T3> void And​(String expression,
                                                StepDefinitionBody.A3<T1,​T2,​T3> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 3 parameters
      • And

        default <T1,​T2,​T3,​T4> void And​(String expression,
                                                         StepDefinitionBody.A4<T1,​T2,​T3,​T4> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 4 parameters
      • And

        default <T1,​T2,​T3,​T4,​T5> void And​(String expression,
                                                                  StepDefinitionBody.A5<T1,​T2,​T3,​T4,​T5> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 5 parameters
      • And

        default <T1,​T2,​T3,​T4,​T5,​T6> void And​(String expression,
                                                                           StepDefinitionBody.A6<T1,​T2,​T3,​T4,​T5,​T6> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 6 parameters
      • And

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7> void And​(String expression,
                                                                                    StepDefinitionBody.A7<T1,​T2,​T3,​T4,​T5,​T6,​T7> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 7 parameters
      • And

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void And​(String expression,
                                                                                             StepDefinitionBody.A8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 8 parameters
      • And

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void And​(String expression,
                                                                                                      StepDefinitionBody.A9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        T9 - type of argument 9
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 9 parameters
      • But

        default void But​(String expression,
                         StepDefinitionBody.A0 body)
        Creates a new step definition.
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with no parameters
      • But

        default <T1> void But​(String expression,
                              StepDefinitionBody.A1<T1> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 1 parameters
      • But

        default <T1,​T2> void But​(String expression,
                                       StepDefinitionBody.A2<T1,​T2> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 2 parameters
      • But

        default <T1,​T2,​T3> void But​(String expression,
                                                StepDefinitionBody.A3<T1,​T2,​T3> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 3 parameters
      • But

        default <T1,​T2,​T3,​T4> void But​(String expression,
                                                         StepDefinitionBody.A4<T1,​T2,​T3,​T4> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 4 parameters
      • But

        default <T1,​T2,​T3,​T4,​T5> void But​(String expression,
                                                                  StepDefinitionBody.A5<T1,​T2,​T3,​T4,​T5> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 5 parameters
      • But

        default <T1,​T2,​T3,​T4,​T5,​T6> void But​(String expression,
                                                                           StepDefinitionBody.A6<T1,​T2,​T3,​T4,​T5,​T6> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 6 parameters
      • But

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7> void But​(String expression,
                                                                                    StepDefinitionBody.A7<T1,​T2,​T3,​T4,​T5,​T6,​T7> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 7 parameters
      • But

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void But​(String expression,
                                                                                             StepDefinitionBody.A8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 8 parameters
      • But

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void But​(String expression,
                                                                                                      StepDefinitionBody.A9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        T9 - type of argument 9
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 9 parameters
      • Given

        default void Given​(String expression,
                           StepDefinitionBody.A0 body)
        Creates a new step definition.
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with no parameters
      • Given

        default <T1> void Given​(String expression,
                                StepDefinitionBody.A1<T1> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 1 parameters
      • Given

        default <T1,​T2> void Given​(String expression,
                                         StepDefinitionBody.A2<T1,​T2> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 2 parameters
      • Given

        default <T1,​T2,​T3> void Given​(String expression,
                                                  StepDefinitionBody.A3<T1,​T2,​T3> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 3 parameters
      • Given

        default <T1,​T2,​T3,​T4> void Given​(String expression,
                                                           StepDefinitionBody.A4<T1,​T2,​T3,​T4> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 4 parameters
      • Given

        default <T1,​T2,​T3,​T4,​T5> void Given​(String expression,
                                                                    StepDefinitionBody.A5<T1,​T2,​T3,​T4,​T5> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 5 parameters
      • Given

        default <T1,​T2,​T3,​T4,​T5,​T6> void Given​(String expression,
                                                                             StepDefinitionBody.A6<T1,​T2,​T3,​T4,​T5,​T6> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 6 parameters
      • Given

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7> void Given​(String expression,
                                                                                      StepDefinitionBody.A7<T1,​T2,​T3,​T4,​T5,​T6,​T7> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 7 parameters
      • Given

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void Given​(String expression,
                                                                                               StepDefinitionBody.A8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 8 parameters
      • Given

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void Given​(String expression,
                                                                                                        StepDefinitionBody.A9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        T9 - type of argument 9
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 9 parameters
      • Then

        default void Then​(String expression,
                          StepDefinitionBody.A0 body)
        Creates a new step definition.
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with no parameters
      • Then

        default <T1> void Then​(String expression,
                               StepDefinitionBody.A1<T1> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 1 parameters
      • Then

        default <T1,​T2> void Then​(String expression,
                                        StepDefinitionBody.A2<T1,​T2> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 2 parameters
      • Then

        default <T1,​T2,​T3> void Then​(String expression,
                                                 StepDefinitionBody.A3<T1,​T2,​T3> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 3 parameters
      • Then

        default <T1,​T2,​T3,​T4> void Then​(String expression,
                                                          StepDefinitionBody.A4<T1,​T2,​T3,​T4> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 4 parameters
      • Then

        default <T1,​T2,​T3,​T4,​T5> void Then​(String expression,
                                                                   StepDefinitionBody.A5<T1,​T2,​T3,​T4,​T5> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 5 parameters
      • Then

        default <T1,​T2,​T3,​T4,​T5,​T6> void Then​(String expression,
                                                                            StepDefinitionBody.A6<T1,​T2,​T3,​T4,​T5,​T6> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 6 parameters
      • Then

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7> void Then​(String expression,
                                                                                     StepDefinitionBody.A7<T1,​T2,​T3,​T4,​T5,​T6,​T7> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 7 parameters
      • Then

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void Then​(String expression,
                                                                                              StepDefinitionBody.A8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 8 parameters
      • Then

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void Then​(String expression,
                                                                                                       StepDefinitionBody.A9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        T9 - type of argument 9
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 9 parameters
      • When

        default void When​(String expression,
                          StepDefinitionBody.A0 body)
        Creates a new step definition.
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with no parameters
      • When

        default <T1> void When​(String expression,
                               StepDefinitionBody.A1<T1> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 1 parameters
      • When

        default <T1,​T2> void When​(String expression,
                                        StepDefinitionBody.A2<T1,​T2> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 2 parameters
      • When

        default <T1,​T2,​T3> void When​(String expression,
                                                 StepDefinitionBody.A3<T1,​T2,​T3> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 3 parameters
      • When

        default <T1,​T2,​T3,​T4> void When​(String expression,
                                                          StepDefinitionBody.A4<T1,​T2,​T3,​T4> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 4 parameters
      • When

        default <T1,​T2,​T3,​T4,​T5> void When​(String expression,
                                                                   StepDefinitionBody.A5<T1,​T2,​T3,​T4,​T5> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 5 parameters
      • When

        default <T1,​T2,​T3,​T4,​T5,​T6> void When​(String expression,
                                                                            StepDefinitionBody.A6<T1,​T2,​T3,​T4,​T5,​T6> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 6 parameters
      • When

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7> void When​(String expression,
                                                                                     StepDefinitionBody.A7<T1,​T2,​T3,​T4,​T5,​T6,​T7> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 7 parameters
      • When

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void When​(String expression,
                                                                                              StepDefinitionBody.A8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 8 parameters
      • When

        default <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void When​(String expression,
                                                                                                       StepDefinitionBody.A9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> body)
        Creates a new step definition.
        Type Parameters:
        T1 - type of argument 1
        T2 - type of argument 2
        T3 - type of argument 3
        T4 - type of argument 4
        T5 - type of argument 5
        T6 - type of argument 6
        T7 - type of argument 7
        T8 - type of argument 8
        T9 - type of argument 9
        Parameters:
        expression - the cucumber expression
        body - a lambda expression with 9 parameters