Enabling the Test Util API

Warning: The Test Util API is intended for use in a development environment only. Do not use the Test Util API on a production system.

The Test Util API is enabled using substitution placeholders. A substitution placeholder is a variable that determines the setting of a specific server property. The value is stored outside of the Guidewire application. During server start-up, the Guidewire application looks for the property's value in the following places in this order. It uses the first value it finds.

  1. Guidewire Property Services
  2. Guidewire Cloud Platform (GWCP) variables
  3. The application's config.properties file

To enable the Test Util API in ClaimCenter, you must do two things:

  1. Enable the Test Util API itself.
  2. Set the IPolicySearchAdapter plugin to use a mock plugin designed specifically for Test Util API.

Both of these steps are accomplished using substitution placeholders. A substitution placeholder is a variable that determines the setting of a specific server property. The value is stored outside of the Guidewire application. During server start-up, the Guidewire application looks for the property's value in the following places in this order. It uses the first value it finds.

The syntax for a substitution variable varies slightly based on where the value is being set.

Setting the values in Guidewire Property Services

To set the values in Guidewire Property Services, specify the following:

BillingCenter and PolicyCenter
published-apis.PUBLISHEDAPIS_testutil_publish = true
ClaimCenter
published-apis.PUBLISHEDAPIS_testutil_publish = true
plugin.PLUGIN_IPOLICYSEARCHADAPTER_PROFILE = testutil-api

Then, you must start (or restart) the server.

Setting the values in Guidewire Cloud Platform variables

To set the values in Guidewire Cloud Platform (GWCP), specify the following:

BillingCenter and PolicyCenter
PUBLISHEDAPIS_testutil_publish = true
ClaimCenter
PUBLISHEDAPIS_testutil_publish = true
PLUGIN_IPOLICYSEARCHADAPTER_PROFILE = testutil-api

Then, you must start (or restart) the server.

Setting the values in the application's config.properties file

To set the values in the application's config.properties file, specify the following:

BillingCenter and PolicyCenter
published-apis.PUBLISHEDAPIS_testutil_publish = true
ClaimCenter
published-apis.PUBLISHEDAPIS_testutil_publish = true
plugin.PLUGIN_IPOLICYSEARCHADAPTER_PROFILE = testutil-api

Then, you must start (or restart) the server.