Configuring the JUnit tests for a local server on Windows

JUnit tests with sample data are provided that can be used to call some of the IBM® Intelligent Operations Center REST APIs. You can configure the JUnit tests for a local server on Windows.

Procedure

  1. Run the scripts to create the database on the local server.
  2. Start WebSphere® Application Server Liberty Profile on the local server.
  3. In the Enterprise Explorer view in Eclipse, in the junit_round_rock_data project, edit the following file:
    config.properties
  4. Set Sysprop.TileServerUrl.value to the value of your ArcGIS tile server URL.
    Note: Only an Esri ArcGIS XYZ tile server is supported for use with the supplied JUnit tests.
  5. Set KPI.customConnection.host to the host name for the server.
  6. Set KPI.customConnection.port to the database server port that is used to access the IOCDB database.
  7. Set KPI.customConnection.user to the database ID that owns the IOCDB database.
  8. Set KPI.customConnection.password to the password for the ID that is configured as the value for KPI.customConnection.user.
  9. Save your changes and then close the editor.
  10. In the Enterprise Explorer view in Eclipse, expand the junit_round_rock_testsuite_utils project.
  11. Right-click Create Round Rock Samples on Local.launch and then click Run As > Create Round Rock Samples on Local.