Annotation Interface SpringRabbitTest


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface SpringRabbitTest
Adds infrastructure beans to a Spring test context; do not use with Spring Boot since it has its own auto configuration mechanism.
Since:
2.3
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Container type.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Set the container type to determine which container factory to configure.
    Set the host when not using RabbitAvailable.
    Set the password when not using RabbitAvailable.
    int
    Set the port when not using RabbitAvailable.
    Set the user when not using RabbitAvailable.
  • Element Details

    • host

      String host
      Set the host when not using RabbitAvailable.
      Returns:
      the host.
      Default:
      "localhost"
    • port

      int port
      Set the port when not using RabbitAvailable.
      Returns:
      the port.
      Default:
      5672
    • user

      String user
      Set the user when not using RabbitAvailable.
      Returns:
      the user.
      Default:
      "guest"
    • password

      String password
      Set the password when not using RabbitAvailable.
      Returns:
      the password.
      Default:
      "guest"
    • containerType

      Set the container type to determine which container factory to configure.
      Returns:
      the type.
      Default:
      simple