Annotation Interface TestHTTPResource


@Retention(RUNTIME) @Target(FIELD) public @interface TestHTTPResource
Indicates that a field should be injected with a resource that is pre-configured to use the correct test URL. This could be a String or URL object, or some other HTTP/Websocket based client. This mechanism is pluggable, via TestHTTPResourceProvider
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
     
  • Element Details

    • value

      String value
      Returns:
      The path part of the URL
      Default:
      ""
    • ssl

      boolean ssl
      Returns:
      If the URL should use the HTTPS protocol and SSL port
      Default:
      false