Interface LambdaGlue

    • Method Detail

      • Before

        default void Before​(HookBody body)
        Defines an before hook.
        Parameters:
        body - lambda to execute, takes Scenario as an argument
      • Before

        default void Before​(String tagExpression,
                            HookBody body)
        Defines an before hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        body - lambda to execute, takes Scenario as an argument
      • Before

        default void Before​(int order,
                            HookBody body)
        Defines an before hook.
        Parameters:
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute, takes Scenario as an argument
      • Before

        default void Before​(String tagExpression,
                            int order,
                            HookBody body)
        Defines an before hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute, takes Scenario as an argument
      • Before

        default void Before​(HookNoArgsBody body)
        Defines an before hook.
        Parameters:
        body - lambda to execute, takes Scenario as an argument
      • Before

        default void Before​(String tagExpression,
                            HookNoArgsBody body)
        Defines an before hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        body - lambda to execute
      • Before

        default void Before​(int order,
                            HookNoArgsBody body)
        Defines an before hook.
        Parameters:
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute
      • Before

        default void Before​(String tagExpression,
                            int order,
                            HookNoArgsBody body)
        Defines an before hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute
      • BeforeStep

        default void BeforeStep​(HookBody body)
        Defines an before step hook.
        Parameters:
        body - lambda to execute, takes Scenario as an argument
      • BeforeStep

        default void BeforeStep​(String tagExpression,
                                HookBody body)
        Defines an before step hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        body - lambda to execute, takes Scenario as an argument
      • BeforeStep

        default void BeforeStep​(int order,
                                HookBody body)
        Defines an before step hook.
        Parameters:
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute, takes Scenario as an argument
      • BeforeStep

        default void BeforeStep​(String tagExpression,
                                int order,
                                HookBody body)
        Defines an before step hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute, takes Scenario as an argument
      • BeforeStep

        default void BeforeStep​(HookNoArgsBody body)
        Defines an before step hook.
        Parameters:
        body - lambda to execute
      • BeforeStep

        default void BeforeStep​(String tagExpression,
                                HookNoArgsBody body)
        Defines an before step hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        body - lambda to execute
      • BeforeStep

        default void BeforeStep​(int order,
                                HookNoArgsBody body)
        Defines an before step hook.
        Parameters:
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute
      • BeforeStep

        default void BeforeStep​(String tagExpression,
                                int order,
                                HookNoArgsBody body)
        Defines an before step hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute
      • After

        default void After​(HookBody body)
        Defines an after hook.
        Parameters:
        body - lambda to execute, takes Scenario as an argument
      • After

        default void After​(String tagExpression,
                           HookBody body)
        Defines an after hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        body - lambda to execute, takes Scenario as an argument
      • After

        default void After​(int order,
                           HookBody body)
        Defines an after hook.
        Parameters:
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute, takes Scenario as an argument
      • After

        default void After​(String tagExpression,
                           int order,
                           HookBody body)
        Defines and after hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute, takes Scenario as an argument
      • After

        default void After​(HookNoArgsBody body)
        Defines and after hook.
        Parameters:
        body - lambda to execute
      • After

        default void After​(String tagExpression,
                           HookNoArgsBody body)
        Defines and after hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        body - lambda to execute
      • After

        default void After​(int order,
                           HookNoArgsBody body)
        Defines and after hook.
        Parameters:
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute
      • After

        default void After​(String tagExpression,
                           int order,
                           HookNoArgsBody body)
        Defines and after hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute
      • AfterStep

        default void AfterStep​(HookBody body)
        Defines and after step hook.
        Parameters:
        body - lambda to execute, takes Scenario as an argument
      • AfterStep

        default void AfterStep​(String tagExpression,
                               HookBody body)
        Defines and after step hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        body - lambda to execute, takes Scenario as an argument
      • AfterStep

        default void AfterStep​(int order,
                               HookBody body)
        Defines and after step hook.
        Parameters:
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute, takes Scenario as an argument
      • AfterStep

        default void AfterStep​(String tagExpression,
                               int order,
                               HookBody body)
        Defines and after step hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute, takes Scenario as an argument
      • AfterStep

        default void AfterStep​(HookNoArgsBody body)
        Defines and after step hook.
        Parameters:
        body - lambda to execute
      • AfterStep

        default void AfterStep​(String tagExpression,
                               HookNoArgsBody body)
        Defines and after step hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        body - lambda to execute
      • AfterStep

        default void AfterStep​(int order,
                               HookNoArgsBody body)
        Defines and after step hook.
        Parameters:
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute
      • AfterStep

        default void AfterStep​(String tagExpression,
                               int order,
                               HookNoArgsBody body)
        Defines and after step hook.
        Parameters:
        tagExpression - a tag expression, if the expression applies to the current scenario this hook will be executed
        order - the order in which this hook should run. Higher numbers are run first
        body - lambda to execute
      • DocStringType

        default void DocStringType​(String contentType,
                                   DocStringDefinitionBody<?> body)
        Register doc string type.
        Parameters:
        contentType - Name of the content type.
        body - a function that creates an instance of type from the doc string
        See Also:
        DocStringType
      • DataTableType

        default <T> void DataTableType​(DataTableEntryDefinitionBody<T> body)
        Register a data table type.
        Type Parameters:
        T - the data table type
        Parameters:
        body - a function that creates an instance of type from the data table
      • DataTableType

        default <T> void DataTableType​(String replaceWithEmptyString,
                                       DataTableEntryDefinitionBody<T> body)
        Register a data table type with a replacement.

        A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

        Type Parameters:
        T - the data table type
        Parameters:
        replaceWithEmptyString - a string that will be replaced with an empty string.
        body - a function that creates an instance of type from the data table
      • DataTableType

        default <T> void DataTableType​(DataTableRowDefinitionBody<T> body)
        Register a data table type
        Type Parameters:
        T - the data table type
        Parameters:
        body - a function that creates an instance of type from the data table
      • DataTableType

        default <T> void DataTableType​(String replaceWithEmptyString,
                                       DataTableRowDefinitionBody<T> body)
        Register a data table type with a replacement.

        A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

        Type Parameters:
        T - the data table type
        Parameters:
        replaceWithEmptyString - a string that will be replaced with an empty string.
        body - a function that creates an instance of type from the data table
      • DataTableType

        default <T> void DataTableType​(DataTableCellDefinitionBody<T> body)
        Register a data table type
        Type Parameters:
        T - the data table type
        Parameters:
        body - a function that creates an instance of type from the data table
      • DataTableType

        default <T> void DataTableType​(String replaceWithEmptyString,
                                       DataTableCellDefinitionBody<T> body)
        Register a data table type with a replacement.

        A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

        Type Parameters:
        T - the data table type
        Parameters:
        replaceWithEmptyString - a string that will be replaced with an empty string.
        body - a function that creates an instance of type from the data table
      • DataTableType

        default <T> void DataTableType​(DataTableDefinitionBody<T> body)
        Register a data table type
        Type Parameters:
        T - the data table type
        Parameters:
        body - a function that creates an instance of type from the data table
      • DataTableType

        default <T> void DataTableType​(String replaceWithEmptyString,
                                       DataTableDefinitionBody<T> body)
        Register a data table type with a replacement.

        A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

        Type Parameters:
        T - the data table type
        Parameters:
        replaceWithEmptyString - a string that will be replaced with an empty string.
        body - a function that creates an instance of type from the data table
      • ParameterType

        default <R> void ParameterType​(String name,
                                       String regex,
                                       ParameterDefinitionBody.A1<R> definitionBody)
        Register parameter type.
        Type Parameters:
        R - the parameter type ParameterType.getType()
        Parameters:
        name - used as the type name in typed expressions ParameterType.getName()
        regex - expression to match
        definitionBody - converts String argument to the target parameter type
        See Also:
        ParameterType, Cucumber Expressions
      • ParameterType

        default <R> void ParameterType​(String name,
                                       String regex,
                                       ParameterDefinitionBody.A2<R> definitionBody)
        Register parameter type.
        Type Parameters:
        R - the parameter type. ParameterType.getType()
        Parameters:
        name - used as the type name in typed expressions. ParameterType.getName()
        regex - expression to match. If the expression includes capture groups their captured strings will be provided as individual arguments.
        definitionBody - converts String arguments to the target parameter type
        See Also:
        ParameterType, Cucumber Expressions
      • DefaultParameterTransformer

        default void DefaultParameterTransformer​(DefaultParameterTransformerBody definitionBody)
        Register default parameter type transformer.
        Parameters:
        definitionBody - converts String argument to an instance of the Type argument
      • DefaultDataTableCellTransformer

        default void DefaultDataTableCellTransformer​(DefaultDataTableCellTransformerBody definitionBody)
        Register default data table cell transformer.
        Parameters:
        definitionBody - converts String argument to an instance of the Type argument
      • DefaultDataTableCellTransformer

        default <T> void DefaultDataTableCellTransformer​(String replaceWithEmptyString,
                                                         DefaultDataTableCellTransformerBody definitionBody)
        Register default data table cell transformer with a replacement.

        A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings. *

        Parameters:
        replaceWithEmptyString - a string that will be replaced with an empty string.
        definitionBody - converts String argument to an instance of the Type argument
      • DefaultDataTableEntryTransformer

        default void DefaultDataTableEntryTransformer​(DefaultDataTableEntryTransformerBody definitionBody)
        Register default data table entry transformer.
        Parameters:
        definitionBody - converts Map<String,String> argument to an instance of the Type argument
      • DefaultDataTableEntryTransformer

        default <T> void DefaultDataTableEntryTransformer​(String replaceWithEmptyString,
                                                          DefaultDataTableEntryTransformerBody definitionBody)
        Register default data table cell transformer with a replacement.

        A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

        Parameters:
        replaceWithEmptyString - a string that will be replaced with an empty string.
        definitionBody - converts Map<String,String> argument to an instance of the Type argument