Index
All Classes and Interfaces|All Packages|Serialized Form
A
- answer(InvocationOnMock) - Method in class org.springframework.amqp.rabbit.test.mockito.LambdaAnswer
- answer(InvocationOnMock) - Method in class org.springframework.amqp.rabbit.test.mockito.LatchCountDownAndCallRealMethodAnswer
- apply(InvocationOnMock, T) - Method in interface org.springframework.amqp.rabbit.test.mockito.LambdaAnswer.ValueToReturn
- await(int) - Method in class org.springframework.amqp.rabbit.test.mockito.LatchCountDownAndCallRealMethodAnswer
-
Wait for the latch to count down.
C
- capture() - Element in annotation interface org.springframework.amqp.rabbit.test.RabbitListenerTest
-
Set to true to advise the listener with a capture advice,
- containerType() - Element in annotation interface org.springframework.amqp.rabbit.test.context.SpringRabbitTest
-
Set the container type to determine which container factory to configure.
D
- direct - Enum constant in enum class org.springframework.amqp.rabbit.test.context.SpringRabbitTest.ContainerType
- doSendAndReceiveWithFixed(String, String, Message, CorrelationData) - Method in class org.springframework.amqp.rabbit.test.TestRabbitTemplate
G
- getArguments() - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness.InvocationData
- getDelegate(String) - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness
-
Get the actual listener object (not the spy).
- getExceptions() - Method in class org.springframework.amqp.rabbit.test.mockito.LambdaAnswer
-
Return the exceptions thrown, if any.
- getExceptions() - Method in class org.springframework.amqp.rabbit.test.mockito.LatchCountDownAndCallRealMethodAnswer
-
Return the exceptions thrown.
- getLambdaAnswerFor(String, boolean, LambdaAnswer.ValueToReturn<T>) - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness
-
Return a
LambdaAnswerthat is properly configured to invoke the listener. - getLatch() - Method in class org.springframework.amqp.rabbit.test.mockito.LatchCountDownAndCallRealMethodAnswer
- getLatchAnswerFor(String, int) - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness
-
Return a
LatchCountDownAndCallRealMethodAnswerthat is properly configured to invoke the listener. - getNextInvocationDataFor(String, long, TimeUnit) - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness
- getResult() - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness.InvocationData
- getSpy(String) - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness
- getThrowable() - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness.InvocationData
H
- host() - Element in annotation interface org.springframework.amqp.rabbit.test.context.SpringRabbitTest
-
Set the host when not using
RabbitAvailable.
I
- InvocationData(MethodInvocation, Object) - Constructor for class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness.InvocationData
- InvocationData(MethodInvocation, Throwable) - Constructor for class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness.InvocationData
L
- LambdaAnswer<T> - Class in org.springframework.amqp.rabbit.test.mockito
-
An
Answerto optionally call the real method and allow returning a custom result. - LambdaAnswer(boolean, LambdaAnswer.ValueToReturn<T>, Object) - Constructor for class org.springframework.amqp.rabbit.test.mockito.LambdaAnswer
-
Construct an instance with the provided properties.
- LambdaAnswer.ValueToReturn<T> - Interface in org.springframework.amqp.rabbit.test.mockito
- LatchCountDownAndCallRealMethodAnswer - Class in org.springframework.amqp.rabbit.test.mockito
-
An
Answerfor void returning methods that calls the real method and counts down a latch. - LatchCountDownAndCallRealMethodAnswer(int, Object) - Constructor for class org.springframework.amqp.rabbit.test.mockito.LatchCountDownAndCallRealMethodAnswer
-
Get an instance with the provided properties.
O
- onApplicationEvent(ContextRefreshedEvent) - Method in class org.springframework.amqp.rabbit.test.TestRabbitTemplate
- org.springframework.amqp.rabbit.test - package org.springframework.amqp.rabbit.test
-
Classes for testing Spring AMQP applications.
- org.springframework.amqp.rabbit.test.context - package org.springframework.amqp.rabbit.test.context
-
Provides classes relating to the test application context.
- org.springframework.amqp.rabbit.test.mockito - package org.springframework.amqp.rabbit.test.mockito
-
Mockito extensions for testing Spring AMQP applications.
P
- password() - Element in annotation interface org.springframework.amqp.rabbit.test.context.SpringRabbitTest
-
Set the password when not using
RabbitAvailable. - port() - Element in annotation interface org.springframework.amqp.rabbit.test.context.SpringRabbitTest
-
Set the port when not using
RabbitAvailable. - processListener(MethodRabbitListenerEndpoint, RabbitListener, Object, Object, String) - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness
R
- RabbitListenerTest - Annotation Interface in org.springframework.amqp.rabbit.test
-
Annotate a
@Configurationclass with this to enable proxying@RabbitListenerbeans to capture arguments and result (if any). - RabbitListenerTestBootstrap - Class in org.springframework.amqp.rabbit.test
-
Overrides the default BPP with a
RabbitListenerTestHarness. - RabbitListenerTestBootstrap() - Constructor for class org.springframework.amqp.rabbit.test.RabbitListenerTestBootstrap
- RabbitListenerTestHarness - Class in org.springframework.amqp.rabbit.test
-
BeanPostProcessor extending
RabbitListenerAnnotationBeanPostProcessor. - RabbitListenerTestHarness(AnnotationMetadata) - Constructor for class org.springframework.amqp.rabbit.test.RabbitListenerTestHarness
- RabbitListenerTestHarness.InvocationData - Class in org.springframework.amqp.rabbit.test
- RabbitListenerTestSelector - Class in org.springframework.amqp.rabbit.test
-
A
RabbitListenerConfigurationSelectorextension to register aRabbitListenerTestBootstrap, but already with the higher order, so theRabbitListenerTestHarnessbean is registered earlier, thanRabbitListenerAnnotationBeanPostProcessor. - RabbitListenerTestSelector() - Constructor for class org.springframework.amqp.rabbit.test.RabbitListenerTestSelector
- registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry) - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestBootstrap
S
- selectImports(AnnotationMetadata) - Method in class org.springframework.amqp.rabbit.test.RabbitListenerTestSelector
- sendToRabbit(Channel, String, String, boolean, Message) - Method in class org.springframework.amqp.rabbit.test.TestRabbitTemplate
- setApplicationContext(ApplicationContext) - Method in class org.springframework.amqp.rabbit.test.TestRabbitTemplate
- simple - Enum constant in enum class org.springframework.amqp.rabbit.test.context.SpringRabbitTest.ContainerType
- SpringRabbitTest - Annotation Interface in org.springframework.amqp.rabbit.test.context
-
Adds infrastructure beans to a Spring test context; do not use with Spring Boot since it has its own auto configuration mechanism.
- SpringRabbitTest.ContainerType - Enum Class in org.springframework.amqp.rabbit.test.context
-
Container type.
- spy() - Element in annotation interface org.springframework.amqp.rabbit.test.RabbitListenerTest
-
Set to true to create a Mockito spy on the listener.
T
- TestRabbitTemplate - Class in org.springframework.amqp.rabbit.test
-
A
RabbitTemplatethat invokes@RabbitListeners directly. - TestRabbitTemplate(ConnectionFactory) - Constructor for class org.springframework.amqp.rabbit.test.TestRabbitTemplate
U
- useDirectReplyTo() - Method in class org.springframework.amqp.rabbit.test.TestRabbitTemplate
- user() - Element in annotation interface org.springframework.amqp.rabbit.test.context.SpringRabbitTest
-
Set the user when not using
RabbitAvailable.
V
- valueOf(String) - Static method in enum class org.springframework.amqp.rabbit.test.context.SpringRabbitTest.ContainerType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.amqp.rabbit.test.context.SpringRabbitTest.ContainerType
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form