@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface Parameter
The field must be numbered (using value()
) from 0 to n, in a
continuous way.
For example, a parameter field can be defined in the following way:
@Parameter(0) public String fieldName;
Parameters
Modifier and Type | Required Element and Description |
---|---|
int |
value
Define the parameter position.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
filter
This attribute can be used to indicate that this parameter is to be used
as a predicate to accept (or not) a test for execution with this
parameter set.
|
public abstract int value
public abstract boolean filter
This is false by default and when set to true, only one field can it. This can only be used on field of type :
BiFunction<String,Object[],Boolean>This predicate will receive as parameter the test method name and the parameter array and should return true if and only if the test method should be run.
BiFunction
Copyright © 2015 Powerunit. All rights reserved.