Annotation Type GivenYamlDocumentsResource


  • @Target({FIELD,PARAMETER})
    @Retention(RUNTIME)
    @Documented
    @API(status=EXPERIMENTAL,
         since="0.1")
    public @interface GivenYamlDocumentsResource
    Annotates field or test parameter that must be injected with parsed content of YAML resource file containing multiple documents (separated by three hyphens '---') with path 'from'.
    See Also:
    WithSnakeYaml
    • Optional Element Summary

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

      • value

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

        java.lang.String from
        Returns:
        Absolute path to requested YAML resource file (with multiple documents).
        Default:
        ""
      • charset

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

        java.lang.String yaml
        Returns:
        Optional. Name of Snakeyaml Yaml object annotated with WithSnakeYaml that will be used to parse resource.
        Default:
        ""