Spring Template Objects Testing
Comments: 2My friend asked me, how we should test this piece of code public void fire(final NotificationMessage message) { jmsTemplate.send(new MessageCreator() { @Override public Message createMessage(Session session) throws JMSException { return session.createObjectMessage(message); } }); } Mock, stubs, arguments matchers are not successful here. Of course we can mock jmsTemplate, verify if send method was executed, but […]