@Documented @Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) public @interface Parameter
@Parameter("My Param")
private String myParameter;
@Test
public void myTest() throws Exception {
myParameter = "first";
myParameter = "second";
myParameter = "third";
}
All three values will be added to report
Note that the initializations of constant fields (static final fields
where the initializer is a constant string object or primitive value)
are not join points, since Java requires their references to be inlined.
value - it's name of parameter, field name by defaultpublic abstract String value
Copyright © 2017 Yandex. All rights reserved.