From 88c788ee590aeff3e408338ad99df004a1213371 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Sun, 20 Aug 2017 13:12:13 -0500 Subject: sonar criticals and some majors Issue-ID: POLICY-114 Change-Id: I5fe12b6538379a4d018bb76173247fe53fba21d7 Signed-off-by: Jorge Hernandez --- .../test/java/org/onap/policy/drools/system/test/PolicyEngineTest.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'policy-management/src/test') diff --git a/policy-management/src/test/java/org/onap/policy/drools/system/test/PolicyEngineTest.java b/policy-management/src/test/java/org/onap/policy/drools/system/test/PolicyEngineTest.java index a9b916b1..1a771032 100644 --- a/policy-management/src/test/java/org/onap/policy/drools/system/test/PolicyEngineTest.java +++ b/policy-management/src/test/java/org/onap/policy/drools/system/test/PolicyEngineTest.java @@ -93,6 +93,9 @@ public class PolicyEngineTest { PolicyController testController = PolicyController.factory.get("unnamed"); assertFalse(testController.getDrools().isAlive()); assertFalse(testController.getDrools().isLocked()); + + PolicyEngine.manager.removePolicyController("unnamed"); + assertTrue(PolicyController.factory.inventory().isEmpty()); } } -- cgit 1.2.3-korg