Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Running the Broker within Intellij

TODO

Running System Tests within Intellij

expand on this.

You need to

  • specify QPID_WORK and QPID_HOME in the "VM options"
  • set the class path to "qpid-broker"
  • set the working directory to the root source folder
  • add dojotoolkit and bdb to the "qpid-broker" module dependencies

Running System Tests within Intellij

Running system tests from within IntelliJ requires a bit of fiddeling. You first create a template configuration which you then need to adapt every time you want to run a different systest. This means this method does not support running the entire test suite.

  1. Add a new Configuration
    1. "Run" --> "Edit Configurations..."
    2. Press the plus (plus) sign at the top left to add a new configuration and select "JUnit"
    3. Change the name to "Systest"
    4. Add these to the "VM options"
      1. -Dprofile.virtualhostnode.context.blueprint='{"type":"ProvidedStore","globalAddressDomains":"${dollar.sign}{qpid.gloabalAddressDomains}"}'
      2. -DQPID_HOME=<your Qpid home path>
      3. -DQPID_WORK=<your Qpid work path>
      4. -Dqpid.globalAddressDomains=[]
    5. Change the "Working Directory" to point to your source root folder (i.e., the folder containing the systests folder)
    6. Set "Use classpath of mod..." to "qpid-systests"
  2. When you want to actually run a specific test, copy the fully qualified class name of the test into the "Class" field of this configuration before executing it.

 TODO