Fix policy/engine due to sonar changes in common
[policy/engine.git] / ONAP-PAP-REST / src / test / java / org / onap / policy / pap / xacml / rest / handler / DeleteHandlerTest.java
index e7ab36e..008f262 100644 (file)
@@ -37,7 +37,7 @@ import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mockito;
-import org.onap.policy.common.logging.ONAPLoggingContext;
+import org.onap.policy.common.logging.OnapLoggingContext;
 import org.onap.policy.pap.xacml.rest.XACMLPapServlet;
 import org.onap.policy.pap.xacml.rest.daoimpl.CommonClassDaoImpl;
 import org.onap.policy.pap.xacml.rest.elk.client.PolicyElasticSearchController;
@@ -96,15 +96,15 @@ public class DeleteHandlerTest {
                // Test deletion from PAP
                MockHttpServletResponse response = new MockHttpServletResponse();
                try {
-                       handler.doAPIDeleteFromPAP(request, response);
+                       handler.doApiDeleteFromPap(request, response);
                } catch (Exception ex) {
                        fail("Not expecting an exception: " + ex);
                }
 
         // Test deletion from PDP
-        ONAPLoggingContext loggingContext = Mockito.mock(ONAPLoggingContext.class);
+        OnapLoggingContext loggingContext = Mockito.mock(OnapLoggingContext.class);
         try {
-            handler.doAPIDeleteFromPDP(request, response, loggingContext);
+            handler.doApiDeleteFromPdp(request, response, loggingContext);
         }
         catch (Exception ex) {
             fail("Not expecting an exception: " + ex);