Search in sources :

Example 1 with ExpressionArgument

use of io.cucumber.core.stepexpression.ExpressionArgument in project cucumber-jvm by cucumber.

the class DefinitionArgument method createArguments.

static List<Argument> createArguments(List<io.cucumber.core.stepexpression.Argument> match) {
    List<Argument> args = new ArrayList<>();
    for (io.cucumber.core.stepexpression.Argument argument : match) {
        if (argument instanceof ExpressionArgument) {
            ExpressionArgument expressionArgument = (ExpressionArgument) argument;
            args.add(new DefinitionArgument(expressionArgument));
        }
    }
    return args;
}
Also used : ExpressionArgument(io.cucumber.core.stepexpression.ExpressionArgument) Argument(io.cucumber.plugin.event.Argument) ArrayList(java.util.ArrayList) ExpressionArgument(io.cucumber.core.stepexpression.ExpressionArgument)

Aggregations

ExpressionArgument (io.cucumber.core.stepexpression.ExpressionArgument)1 Argument (io.cucumber.plugin.event.Argument)1 ArrayList (java.util.ArrayList)1