in-memory JMS library
"io.github.sullis" %% "jms-testkit" % "1.0.4" % Test
import jmstestkit.JmsQueue
val queue = JmsQueue()
queue.publishMessage("Portland")
queue.publishMessage("Seattle")
System.out.println("queueName: " + queue.queueName)
System.out.println("size: " + queue.size)
System.out.println("snapshot: " + queue.toSeq)
val connFactory = queue.createQueueConnectionFactory // javax.jms.QueueConnectionFactory
<dependency>
<groupId>io.github.sullis</groupId>
<artifactId>jms-testkit_2.12</artifactId>
<version>1.0.4</version>
<scope>test</scope>
</dependency>
import jmstestkit.JmsQueue;
import javax.jms.QueueConnectionFactory;
JmsQueue queue = JmsQueue.apply();
queue.publishMessage("Whistler");
queue.publishMessage("Blackcomb");
System.out.println("queueName: " + queue.queueName());
System.out.println("size: " + queue.size());
System.out.println("snapshot: " + queue.toJavaList());
QueueConnectionFactory connFactory = queue.createQueueConnectionFactory();
-
[https://activemq.apache.org/how-to-unit-test-jms-code.html]
-
[https://stackoverflow.com/questions/2870431/unit-testing-with-jms-activemq]
-
mockrunner-jms [https://mockrunner.github.io/mockrunner/examplesjms.html]
This project uses sbt-ci-release