Annotation Type GivenJsonLinesResource


  • @Target({FIELD,PARAMETER})
    @Retention(RUNTIME)
    @Documented
    @API(status=EXPERIMENTAL,
         since="0.1")
    public @interface GivenJsonLinesResource
    Annotates field or test parameter that must be injected with parsed content of JSONL resource file with path 'from'.
    See Also:
    WithJacksonMapper, WithGson
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String charset  
      java.lang.String from  
      java.lang.String gson  
      java.lang.String jacksonMapper  
      java.lang.String value  
    • Element Detail

      • value

        java.lang.String value
        Returns:
        Alias for from().
        Default:
        ""
      • from

        java.lang.String from
        Returns:
        Absolute path to requested JSONL resource file.
        Default:
        ""
      • charset

        java.lang.String charset
        Returns:
        Encoding charset of resource file.
        Default:
        "UTF-8"
      • jacksonMapper

        java.lang.String jacksonMapper
        Returns:
        Optional. Name of Jackson ObjectMapper object annotated with WithJacksonMapper that will be used to parse resource.
        Default:
        ""
      • gson

        java.lang.String gson
        Returns:
        Optional. Name of GSON Gson object annotated with WithGson that will be used to parse resource.
        Default:
        ""