This application is created as simple as possible. It uses spring-cloud-contract to verify the message contract at publisher and consumer side
- A Producer application to publish a message to amqp
- A Consumer application to receive the message
- Producer contains the contract definition (under test/resources/contracts)
- BaseTest class for contract tests publish message to Amqp
- ContractVerifierTest (auto generated) will verify the contract
- Consumer downloads the stubs from local repo
- The only test will trigger the stub using label
- Asserts the contract
- If
spring-cloud-starter-bus-amqp
is used instead ofspring-boot-starter-amqp
, you need to disablestream
as follows to get rid of the errorNo bean named '<your-exchange-name>' available
stubrunner.stream.enabled=false
- If
opentracing-spring-jaeger-cloud-starter
or any similar tracing is on classpath, you need to disable them as follows to get rid of the errorStubRunner AMQP will work only if RabbiTemplate is a spy
opentracing.spring.rabbitmq.enabled=false