Does anyone know where I can find some JMS stub code? That is, I want to instantiate JMS objects, and send/receive messages, but not actually have a transport mechanism underneath the covers supporting it. I just want some Java classes (possibly running in another thread) to just 'fake it' by acknowledging receipt of the messages or sending messages for my 'real' code to process.
Sometimes I like to just test some interfaces without having to go through and set up all the 'stuff' required to do real JMS/systems integration testing.
posted 8 years ago
I feel Mock objects are appropriate for the situation you are describing here. You could either look at frameworks like Mockmaker, easymock, ejb3unit etc.. or write your own jms mock implementation.