Annotation Type Transpose


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    @API(status=STABLE)
    public @interface Transpose

    This annotation can be specified on step definition method parameters to give Cucumber a hint to transpose a DataTable.

    For example, if you have the following Gherkin step with a table

     Given the user is
        | firstname | Roberto       |
        | lastname  | Lo Giacco |
        | nationality       | Italian       |
     

    And a data table type to create a User

     {@code
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean value  
    • Element Detail

      • value

        boolean value
        Default:
        true