Annotation Type Format


  • @Documented
    @Retention(RUNTIME)
    @Target({PARAMETER,ANNOTATION_TYPE,FIELD})
    public @interface Format
    Allows arguments of step methods to be formatted with an ArgumentFormatter.
    Since:
    0.7.0 this annotation can be put onto other annotations
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] args
      Optional arguments for the ArgumentFormatter.
      java.lang.Class<? extends ArgumentFormatter<?>> value  
    • Element Detail

      • value

        java.lang.Class<? extends ArgumentFormatter<?>> value
        Default:
        com.tngtech.jgiven.format.PrintfFormatter.class
      • args

        java.lang.String[] args
        Optional arguments for the ArgumentFormatter.
        Default:
        {}