aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/m2/test
diff options
context:
space:
mode:
authorChou, Joseph (jc2555) <jc2555@att.com>2020-01-21 13:07:21 -0500
committerJorge Hernandez <jorge.hernandez-herrero@att.com>2020-03-06 15:55:07 +0000
commit55f3e5e9dad4a15b4bbffa892e5851abe5b900c3 (patch)
tree2b121fe44e8ba5bf5ce3240f3324452ac3610f31 /controlloop/m2/test
parentb3a65de5156de7e2f4ac6e69c515576d077443aa (diff)
ONAP m2 base junit coverage
Added testcases to improve code coverage Issue-ID: POLICY-2289 Change-Id: Ib573ae668b5bca008c4600df99e7f1cf4053d1a1 Signed-off-by: Joseph Chou <jc2555@att.com>
Diffstat (limited to 'controlloop/m2/test')
-rw-r--r--controlloop/m2/test/src/test/resources/appclcm/M2CLRulevUSPAPPCLCMGuardTemplate.drl4
1 files changed, 2 insertions, 2 deletions
diff --git a/controlloop/m2/test/src/test/resources/appclcm/M2CLRulevUSPAPPCLCMGuardTemplate.drl b/controlloop/m2/test/src/test/resources/appclcm/M2CLRulevUSPAPPCLCMGuardTemplate.drl
index 2a24f1312..0e947c8e1 100644
--- a/controlloop/m2/test/src/test/resources/appclcm/M2CLRulevUSPAPPCLCMGuardTemplate.drl
+++ b/controlloop/m2/test/src/test/resources/appclcm/M2CLRulevUSPAPPCLCMGuardTemplate.drl
@@ -95,7 +95,7 @@ function void sendNotification(Context context,
notification.setPolicyScope("${policyScope}");
notification.setPolicyVersion("${policyVersion}");
- PolicyEngineConstants.getManager().deliver(context.getNotificationTopic(), notification);
+ Util.deliver(context.getNotificationTopic(), notification);
}
}
@@ -350,7 +350,7 @@ rule "${policyName}.TRANSACTION.LCM.BEGIN"
logger.error("request could not be formed due to: "+e.getMessage());
return;
}
- PolicyEngineConstants.getManager().deliver($context.getOperationTopic(), request);
+ Util.deliver($context.getOperationTopic(), request);
// send notification
sendNotification($context, drools,