Samples of how to test the IBM WebSphere Message Broker using Groovy, Spock and Apache Camel.
WMB8
It uses the WMB8 Default Configuration for development (however this is configurable, see Configuration) This means:
- A broker called MB8BROKER
- A queuemanager called MB8QMGR with a listener on port 2414
JDK SE 7
You need a JDK SE 7 and also you need to set the JAVA_HOME environment variable.
Edit the src/test/resources/wmq.properties if you have other connection params to your queuemanager. Default is:
qmgr.hostName=localhost
qmgr.port=2414
qmgr.queueManager=MB8QMGR
qmgr.channel=SYSTEM.AUTO.SVRCONN
#0 = binding, 1 = client, 8 = first binding, then client
qmgr.transportType=1
All you need is Java and you can run the Gradle build using gradlew or gradlew.bat depending upon OS. No need for Gradle or Groovy...
gradlew.bat test to run the tests (it will download a gradle-wrapper dist).
Since it requires a full WMBT+WMB+WMQ installation I do not have the infrastructure to make it happend as of now.