Skip to content

kstojanovski-novatec/spring-amqp-testing-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring AMQP testing issue

Running the application works as expected, but exception appears on integration test.

Quickstart

Quick-start instruction of this application which works well.

  1. Start the RabbitMQ container (docker-compose\docker-compose.yml).
services:
  rabbitmq:
    image: rabbitmq:management
    ports:
      - "5672:5672"
      - "15672:15672"
  1. Start the application (The different types part is started trough scheduler).
  2. If you want to start the other part "many consumers" start modify the property files by setting the cron value to "-" in the different-types.properties file and modifying the many-consumers.property file.

Issue

The test-container tests where classes with @RabbitListener and @RabbitHandler are used cause trouble by throwing AmqpException (Caused by: org.springframework.amqp.AmqpException: Ambiguous methods for payload type).

It this the expected behaviour, and if yes how those classes can be tested?


Issue was created under: spring-projects/spring-amqp#2456

Solution

The issue was solved with: spring-projects/spring-amqp#2457.

The fix will be part of the Spring AMQP version 3.0.5 which is planned to be released of June 19, 2023. https://github.com/spring-projects/spring-amqp/milestone/210

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages