From e5c628fee6a6e6bb57a34d5b73e092d89ee26a5c Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 19 Feb 2018 11:53:40 -0500 Subject: Fix compilation issue due to generic Exception After modifying common to remove generic Exceptions, policy/engine would no longer compile. Had to modify policy/engine to accomodate the specific exception. Change-Id: If339285235994119009a8dcf9484bc81016e2600 Issue-ID: POLICY-246 Signed-off-by: Jim Hahn --- .../test/java/org/onap/policy/pdp/rest/XACMLPdpServletTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ONAP-PDP-REST/src/test') diff --git a/ONAP-PDP-REST/src/test/java/org/onap/policy/pdp/rest/XACMLPdpServletTest.java b/ONAP-PDP-REST/src/test/java/org/onap/policy/pdp/rest/XACMLPdpServletTest.java index 594b51c06..e8747f736 100644 --- a/ONAP-PDP-REST/src/test/java/org/onap/policy/pdp/rest/XACMLPdpServletTest.java +++ b/ONAP-PDP-REST/src/test/java/org/onap/policy/pdp/rest/XACMLPdpServletTest.java @@ -42,13 +42,10 @@ import org.junit.Test; import org.mockito.Mockito; import org.onap.policy.common.ia.DbDAO; import org.onap.policy.common.ia.IntegrityAuditProperties; -import org.onap.policy.common.im.AdministrativeStateException; import org.onap.policy.common.im.IntegrityMonitor; -import org.onap.policy.common.im.StandbyStatusException; +import org.onap.policy.common.im.IntegrityMonitorException; import org.onap.policy.common.logging.flexlogger.FlexLogger; import org.onap.policy.common.logging.flexlogger.Logger; - -import org.onap.policy.pdp.rest.XACMLPdpServletTest; import org.powermock.api.mockito.PowerMockito; import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.mock.web.MockServletConfig; @@ -168,7 +165,7 @@ public class XACMLPdpServletTest extends TestCase{ try { Mockito.doNothing().when(im).startTransaction(); - } catch (StandbyStatusException | AdministrativeStateException e) { + } catch (IntegrityMonitorException e) { fail(); } Mockito.doNothing().when(im).endTransaction(); -- cgit 1.2.3-korg