Add database initialization to XACML PDP test 03/37903/1
authorliamfallon <liam.fallon@ericsson.com>
Thu, 22 Mar 2018 23:16:50 +0000 (23:16 +0000)
committerliamfallon <liam.fallon@ericsson.com>
Thu, 22 Mar 2018 23:27:21 +0000 (23:27 +0000)
commitc3140f4308f0752153fb279badc88b7d54094171
tree12d90d09c774c8f10a02683c88151a47dbc3d187
parentcfb9038e5bca8e3840ebb25d75144abba8343ea6
Add database initialization to XACML PDP test

This issue arose due to the order of execution of JUnit tests.

The tests in XACMLPAPTest failed becasue the database was not initialized.
Up till now, the @Before method in the test class
org.onap.policy.pap.ia.DbAuditCompareEntriesTesti initiated the database.
THis bug fix adds a similar @Before method to the XACMLPAPTest class
to initialize the database.

All other classes in the module were tested with both @Before methods
commented out to ensure that no other tests will fail due to this issue.

Issue-ID: POLICY-707
Change-Id: Ibce5fad5c006f7a92b3ef77bde4dc5ed6f7039ed
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
ONAP-PAP-REST/src/test/java/org/onap/policy/pap/test/XACMLPAPTest.java