Annotation Type 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
    Author:
    Gary Russell
    • Element Detail

      • port

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

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

        SpringRabbitTest.ContainerType containerType
        Set the container type to determine which container factory to configure.
        Returns:
        the type.
        Default:
        org.springframework.amqp.rabbit.test.context.SpringRabbitTest.ContainerType.simple