Please sign in to comment.
GH-973: Higher order for RabbitListenerTestHarness
Fixes #973 When we use `@EnableRabbit` and `@RabbitListenerTest` in the same configuration set, e.g. mixing real `@Configuration` and test one for `@RabbitListenerTest`, we may end up with the case when `@EnableRabbit` is processed before `@RabbitListenerTest`, so, `RabbitListenerTestHarness` bean is not going to appear in the application context. * Override `getOrder()` for the `RabbitListenerTestHarness` to give it higher priority than regular `RabbitListenerAnnotationBeanPostProcessor`, so it is registered first and then the last one won't override existing bean **Cherry-pick to 2.1.x**
- Loading branch information
Showing with 18 additions and 8 deletions.