How to run tests
================

1) Make sure your settings.xml includes the following repository:

   <repository>
     <id>mead-jdg6</id>
     <name>MEAD JDG6 Maven Repository</name>
     <url>http://download.lab.eng.bos.redhat.com/brewroot/repos/jb-edg-6-rhel-6-build/latest/maven/</url>
     <releases>
       <enabled>true</enabled>
       <updatePolicy>never</updatePolicy>
     </releases>
     <snapshots>
       <enabled>false</enabled>
     </snapshots>
   </repository>

   Alternatively, use build.sh from the root directory instead of "mvn" when running tests.

2) Download Red Hat JBoss Fuse Service Works. Install it locally via the Java installer.

3) Install all Camel modules locally from the root directory of this repository

4) Run the tests with the following command, all libraries will be bundled inside the web archive:

   mvn verify -Dfsw.home=/full/path/to/fsw/home/directory
              -Djdg.home=/full/path/to/jdg/home/directory

5) Run the tests using JDG modules for EAP/FSW.

   mvn verify -Dfsw.home=/full/path/to/fsw/home/directory
              -Djdg.home=/full/path/to/jdg/home/directory
              -Deap.modules.library=/full/path/to/eap/modules/for/library/mode
              -Deap.modules.hotrod=/full/path/to/eap/modules/for/hotrod/client