Fix optimization bug add coverage plus
[policy/xacml-pdp.git] / applications / common / src / test / java / org / onap / policy / pdp / xacml / application / common / std / StdBaseTranslatorTest.java
index a7391fa..8039a9c 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP
  * ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 
+import com.att.research.xacml.api.Advice;
 import com.att.research.xacml.api.AttributeAssignment;
 import com.att.research.xacml.api.Decision;
 import com.att.research.xacml.api.IdReference;
@@ -249,6 +250,10 @@ public class StdBaseTranslatorTest {
         protected void scanObligations(Collection<Obligation> obligations, DecisionResponse decisionResponse) {
         }
 
+        @Override
+        protected void scanAdvice(Collection<Advice> advice, DecisionResponse decisionResponse) {
+        }
+
     }
 
     private class TestTranslator extends StdBaseTranslator {
@@ -258,6 +263,10 @@ public class StdBaseTranslatorTest {
         protected void scanObligations(Collection<Obligation> obligations, DecisionResponse decisionResponse) {
         }
 
+        @Override
+        protected void scanAdvice(Collection<Advice> advice, DecisionResponse decisionResponse) {
+        }
+
         @Override
         public PolicyType convertPolicy(ToscaPolicy toscaPolicy) throws ToscaPolicyConversionException {
             PolicyType xacmlPolicy = new PolicyType();