com.tngtech.jgiven.annotation
Annotation Type As


@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
@Documented
public @interface As

This annotation can be used to override the default representation for a step method or test method in the report.

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() {
    ...
 }
 

Since:
0.7.4

Required Element Summary
 java.lang.String value
          The alternate representation of the step or scenario summary.
 

Element Detail

value

public abstract java.lang.String value
The alternate representation of the step or scenario summary.