Reputation: 1
I want to best appraoch to integration testing for spring, RabbitMQ and mysql, while removing any external dependencies to Mysql and RabbitMQ. I have tried using: 1. Mock test, but it not the ideal integration testing 2. I can use INMD, but its do't the actual replication for Mysql
Please help me!!
Thx, Prikshit
Upvotes: 0
Views: 976
Reputation: 1811
The ideal case senario is to replace MySql By an H2 memory database : if you use Spring you can change the test configuration to reference an H2 memory .
For rabbitMq , my advice is to use a real RabbiMQ : this can be done by using Vagrant with chef for provisioning the RabbitMq and the Vagrant maven plugin to start the Box before Integration tests and halt it in the post phase of integration tests :
The Vagrant Maven plugin : http://nicoulaj.github.io/vagrant-maven-plugin/
Vagrant WebSite : http://www.vagrantup.com/
Cookbook Chef for RabbitMQ : https://github.com/opscode-cookbooks/rabbitmq
To Summarize you must :
Hope that this help
Upvotes: 2