Fix Test fail with variable length memory address 75/45475/1
authorliamfallon <liam.fallon@ericsson.com>
Tue, 1 May 2018 17:13:12 +0000 (18:13 +0100)
committerliamfallon <liam.fallon@ericsson.com>
Tue, 1 May 2018 17:15:54 +0000 (18:15 +0100)
commit5ff419848b3fd04dba17ba9088c035848015fd4e
tree2808c5a9d453051286fa4ca8f6cb957fec82cd9a
parentb0c7e3bd5a3fa546c1f87298ca4312b728a25495
Fix Test fail with variable length memory address

The unit test class PIPConfigurationTest.java has a test that checks a
configuration string for length. However, the length of the "piptype"
field in that string can vary, causing the test to intermittently fail.

Field that passes:
piptype=org.onap.policy.rest.jpa.PIPType@71b3bc45

Field that fails:
piptype=org.onap.policy.rest.jpa.PIPType@a8c1f44

This fix removes the memory address from the "piptype" field, so that the configuration string will
now always be 323 characters in length.

Change-Id: Ib3640ec6f69ac7d691dcc989c44a7822bcc9b7f7
Issue-ID: POLICY-765
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
ONAP-REST/src/test/java/org/onap/policy/rest/jpa/PIPConfigurationTest.java