Skip to content

Samples of how to test the IBM WebSphere Message Broker using Groovy, Spock and Apache Camel

License

Notifications You must be signed in to change notification settings

hernanrengifo/wmbtesting

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wmbtesting

Samples of how to test the IBM WebSphere Message Broker using Groovy, Spock and Apache Camel.

Prerequisites:

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

WMB8 InfoCenter

JDK SE 7

You need a JDK SE 7 and also you need to set the JAVA_HOME environment variable.

Configuration:

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

Building/testing with Gradle:

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).

CI Builds:

Since it requires a full WMBT+WMB+WMQ installation I do not have the infrastructure to make it happend as of now.

About

Samples of how to test the IBM WebSphere Message Broker using Groovy, Spock and Apache Camel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 57.7%
  • Groovy 42.3%