@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
@Documented
public @interface As
Note that the '$' character keeps its special meaning and will be replaced with step arguments
@As("some (complicated) step") public SELF some_complicated_step() { ... }
@As("Some 'special' scenario description") @Test public void some_special_scenario_description() { ... }
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
NO_VALUE
Dummy value to indicate that no value was set
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends AsProvider> |
provider
An optional provider to generate the representation of the stage method, scenario or scenario class.
|
java.lang.String |
value
The alternate representation of the step or scenario summary.
|
public static final java.lang.String NO_VALUE
public abstract java.lang.String value
public abstract java.lang.Class<? extends AsProvider> provider
The class that implements AsProvider
interface must
be a public non-abstract class that is not a non-static inner class and must have a public default constructor.
If this attribute is set, the value()
attribute is ignored.