@API(status=STABLE)
public interface LambdaGlue
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_AFTER_ORDER |
static int |
DEFAULT_BEFORE_ORDER |
static String |
EMPTY_TAG_EXPRESSION |
Modifier and Type | Method and Description |
---|---|
default void |
After(HookBody body)
Defines an after hook.
|
default void |
After(HookNoArgsBody body)
Defines and after hook.
|
default void |
After(int order,
HookBody body)
Defines an after hook.
|
default void |
After(int order,
HookNoArgsBody body)
Defines and after hook.
|
default void |
After(String tagExpression,
HookBody body)
Defines an after hook.
|
default void |
After(String tagExpression,
HookNoArgsBody body)
Defines and after hook.
|
default void |
After(String tagExpression,
int order,
HookBody body)
Defines and after hook.
|
default void |
After(String tagExpression,
int order,
HookNoArgsBody body)
Defines and after hook.
|
default void |
AfterStep(HookBody body)
Defines and after step hook.
|
default void |
AfterStep(HookNoArgsBody body)
Defines and after step hook.
|
default void |
AfterStep(int order,
HookBody body)
Defines and after step hook.
|
default void |
AfterStep(int order,
HookNoArgsBody body)
Defines and after step hook.
|
default void |
AfterStep(String tagExpression,
HookBody body)
Defines and after step hook.
|
default void |
AfterStep(String tagExpression,
HookNoArgsBody body)
Defines and after step hook.
|
default void |
AfterStep(String tagExpression,
int order,
HookBody body)
Defines and after step hook.
|
default void |
AfterStep(String tagExpression,
int order,
HookNoArgsBody body)
Defines and after step hook.
|
default void |
Before(HookBody body)
Defines an before hook.
|
default void |
Before(HookNoArgsBody body)
Defines an before hook.
|
default void |
Before(int order,
HookBody body)
Defines an before hook.
|
default void |
Before(int order,
HookNoArgsBody body)
Defines an before hook.
|
default void |
Before(String tagExpression,
HookBody body)
Defines an before hook.
|
default void |
Before(String tagExpression,
HookNoArgsBody body)
Defines an before hook.
|
default void |
Before(String tagExpression,
int order,
HookBody body)
Defines an before hook.
|
default void |
Before(String tagExpression,
int order,
HookNoArgsBody body)
Defines an before hook.
|
default void |
BeforeStep(HookBody body)
Defines an before step hook.
|
default void |
BeforeStep(HookNoArgsBody body)
Defines an before step hook.
|
default void |
BeforeStep(int order,
HookBody body)
Defines an before step hook.
|
default void |
BeforeStep(int order,
HookNoArgsBody body)
Defines an before step hook.
|
default void |
BeforeStep(String tagExpression,
HookBody body)
Defines an before step hook.
|
default void |
BeforeStep(String tagExpression,
HookNoArgsBody body)
Defines an before step hook.
|
default void |
BeforeStep(String tagExpression,
int order,
HookBody body)
Defines an before step hook.
|
default void |
BeforeStep(String tagExpression,
int order,
HookNoArgsBody body)
Defines an before step hook.
|
default <T> void |
DataTableType(DataTableCellDefinitionBody<T> body)
Register a data table type
|
default <T> void |
DataTableType(DataTableDefinitionBody<T> body)
Register a data table type
|
default <T> void |
DataTableType(DataTableEntryDefinitionBody<T> body)
Register a data table type.
|
default <T> void |
DataTableType(DataTableRowDefinitionBody<T> body)
Register a data table type
|
default void |
DefaultDataTableCellTransformer(DefaultDataTableCellTransformerBody definitionBody)
Register default data table cell transformer.
|
default void |
DefaultDataTableEntryTransformer(DefaultDataTableEntryTransformerBody definitionBody)
Register default data table entry transformer.
|
default void |
DefaultParameterTransformer(DefaultParameterTransformerBody definitionBody)
Register default parameter type transformer.
|
default void |
DocStringType(String contentType,
DocStringDefinitionBody body)
Register doc string type.
|
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A1<R> definitionBody)
Register parameter type.
|
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A2<R> definitionBody)
Register parameter type.
|
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A3<R> definitionBody) |
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A4<R> definitionBody) |
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A5<R> definitionBody) |
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A6<R> definitionBody) |
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A7<R> definitionBody) |
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A8<R> definitionBody) |
default <R> void |
ParameterType(String name,
String regex,
ParameterDefinitionBody.A9<R> definitionBody) |
static final String EMPTY_TAG_EXPRESSION
static final int DEFAULT_BEFORE_ORDER
static final int DEFAULT_AFTER_ORDER
default void Before(HookBody body)
body
- lambda to execute, takes Scenario
as an argumentdefault void Before(String tagExpression, HookBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedbody
- lambda to execute, takes Scenario
as an argumentdefault void Before(int order, HookBody body)
order
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to execute, takes Scenario
as an argumentdefault void Before(String tagExpression, int order, HookBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedorder
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to execute, takes Scenario
as an argumentdefault void Before(HookNoArgsBody body)
body
- lambda to execute, takes Scenario
as an argumentdefault void Before(String tagExpression, HookNoArgsBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedbody
- lambda to executedefault void Before(int order, HookNoArgsBody body)
order
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to executedefault void Before(String tagExpression, int order, HookNoArgsBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedorder
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to executedefault void BeforeStep(HookBody body)
body
- lambda to execute, takes Scenario
as an argumentdefault void BeforeStep(String tagExpression, HookBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedbody
- lambda to execute, takes Scenario
as an argumentdefault void BeforeStep(int order, HookBody body)
order
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to execute, takes Scenario
as an argumentdefault void BeforeStep(String tagExpression, int order, HookBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedorder
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to execute, takes Scenario
as an argumentdefault void BeforeStep(HookNoArgsBody body)
body
- lambda to executedefault void BeforeStep(String tagExpression, HookNoArgsBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedbody
- lambda to executedefault void BeforeStep(int order, HookNoArgsBody body)
order
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to executedefault void BeforeStep(String tagExpression, int order, HookNoArgsBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedorder
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to executedefault void After(HookBody body)
body
- lambda to execute, takes Scenario
as an argumentdefault void After(String tagExpression, HookBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedbody
- lambda to execute, takes Scenario
as an argumentdefault void After(int order, HookBody body)
order
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to execute, takes Scenario
as an argumentdefault void After(String tagExpression, int order, HookBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedorder
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to execute, takes Scenario
as an argumentdefault void After(HookNoArgsBody body)
body
- lambda to executedefault void After(String tagExpression, HookNoArgsBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedbody
- lambda to executedefault void After(int order, HookNoArgsBody body)
order
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to executedefault void After(String tagExpression, int order, HookNoArgsBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedorder
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to executedefault void AfterStep(HookBody body)
body
- lambda to execute, takes Scenario
as an argumentdefault void AfterStep(String tagExpression, HookBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedbody
- lambda to execute, takes Scenario
as an argumentdefault void AfterStep(int order, HookBody body)
order
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to execute, takes Scenario
as an argumentdefault void AfterStep(String tagExpression, int order, HookBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedorder
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to execute, takes Scenario
as an argumentdefault void AfterStep(HookNoArgsBody body)
body
- lambda to executedefault void AfterStep(String tagExpression, HookNoArgsBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedbody
- lambda to executedefault void AfterStep(int order, HookNoArgsBody body)
order
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to executedefault void AfterStep(String tagExpression, int order, HookNoArgsBody body)
tagExpression
- a tag expression, if the expression applies to the current scenario this hook will be executedorder
- the order in which this hook should run. Higher numbers are run firstbody
- lambda to executedefault void DocStringType(String contentType, DocStringDefinitionBody body)
contentType
- Name of the content type.body
- a function that creates an instance of type
from the doc stringDocStringType
default <T> void DataTableType(DataTableEntryDefinitionBody<T> body)
T
- the data table typebody
- a function that creates an instance of type
from the
data tabledefault <T> void DataTableType(DataTableRowDefinitionBody<T> body)
T
- the data table typebody
- a function that creates an instance of type
from the data tabledefault <T> void DataTableType(DataTableCellDefinitionBody<T> body)
T
- the data table typebody
- a function that creates an instance of type
from the data tabledefault <T> void DataTableType(DataTableDefinitionBody<T> body)
T
- the data table typebody
- a function that creates an instance of type
from the data tabledefault <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A1<R> definitionBody)
R
- the parameter type
ParameterType.getType()
name
- used as the type name in typed expressions
ParameterType.getName()
regex
- expression to matchdefinitionBody
- converts String
argument to the target parameter typeParameterType
,
Cucumber
Expressionsdefault <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A2<R> definitionBody)
R
- the parameter type.
ParameterType.getType()
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 typeParameterType
,
Cucumber
Expressionsdefault <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A3<R> definitionBody)
default <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A4<R> definitionBody)
default <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A5<R> definitionBody)
default <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A6<R> definitionBody)
default <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A7<R> definitionBody)
default <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A8<R> definitionBody)
default <R> void ParameterType(String name, String regex, ParameterDefinitionBody.A9<R> definitionBody)
default void DefaultParameterTransformer(DefaultParameterTransformerBody definitionBody)
definitionBody
- converts String
argument to an instance of the Type
argumentdefault void DefaultDataTableCellTransformer(DefaultDataTableCellTransformerBody definitionBody)
definitionBody
- converts String
argument to an instance of the Type
argumentdefault void DefaultDataTableEntryTransformer(DefaultDataTableEntryTransformerBody definitionBody)
definitionBody
- converts Map<String,String>
argument to an instance of the Type
argumentCopyright © 2019. All rights reserved.