Annotation Type SpringRabbitTest
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface SpringRabbitTestAdds 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
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description SpringRabbitTest.ContainerTypecontainerTypeSet the container type to determine which container factory to configure.java.lang.StringhostSet the host when not usingRabbitAvailable.java.lang.StringpasswordSet the password when not usingRabbitAvailable.intportSet the port when not usingRabbitAvailable.java.lang.StringuserSet the user when not usingRabbitAvailable.
-
-
-
Element Detail
-
host
java.lang.String host
Set the host when not usingRabbitAvailable.- Returns:
- the host.
- Default:
- "localhost"
-
-
-
port
int port
Set the port when not usingRabbitAvailable.- Returns:
- the port.
- Default:
- 5672
-
-
-
user
java.lang.String user
Set the user when not usingRabbitAvailable.- Returns:
- the user.
- Default:
- "guest"
-
-
-
password
java.lang.String password
Set the password when not usingRabbitAvailable.- 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
-
-