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
     
    boolean
    Deprecated.
    use #tls instead
    boolean
     
     
  • Element Details

    • value

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

      @Deprecated boolean ssl
      Deprecated.
      use #tls instead
      Returns:
      If the URL should use the HTTPS protocol and SSL port
      Default:
      false
    • management

      boolean management
      Returns:
      if the url should use the management interface
      Default:
      false
    • tls

      boolean tls
      Returns:
      If the URL should use the HTTPS protocol and TLS port
      Default:
      false