JMS modeling - jUnit

I need to model the behavior of JMS when running automated tests through maven / hudson. I was thinking about using some kind of mock structure, i.e. Mockito to achieve this, but maybe there is another simple tool that can accomplish this task? I got a little familiar with ActiveMQ, but from what I found out, you need to install a broker to install it. In my case, it is important that everything is done by maven only because I do not have any rights to install anything on the build server.

Thanks for the advanced.

+4
source share
1 answer

You can run ActiveMQ in native mode - the broker runs in your application, and queues are created on the fly. You just need to add activemq.jar and run a few lines of code.

On the other hand, there is a Mockrunner library that supports JMS, although it was designed primarily for unit tests, not integration.

+7
source

Source: https://habr.com/ru/post/1342599/


All Articles