diff options
author | jhh <jorge.hernandez-herrero@att.com> | 2019-11-08 08:42:55 -0600 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2019-11-08 14:40:02 -0600 |
commit | f38687b040bec7b8556fb4bde229343831fa43fd (patch) | |
tree | 8c1706c077c8a45e6bf05423b5d2a6004bf81983 /feature-controller-logging/src | |
parent | 0588d03bb8e9ea5faebf65d4af8e4bff735a96ae (diff) |
Miscellaneous code clean up
Issue-ID: POLICY-2203
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I5731d4636bd2aaecbc486406298bcba1b19e8f4d
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'feature-controller-logging/src')
-rwxr-xr-x | feature-controller-logging/src/test/java/org/onap/policy/drools/controller/logging/ControllerLoggingTest.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/feature-controller-logging/src/test/java/org/onap/policy/drools/controller/logging/ControllerLoggingTest.java b/feature-controller-logging/src/test/java/org/onap/policy/drools/controller/logging/ControllerLoggingTest.java index 8c3e1c79..ecbb320d 100755 --- a/feature-controller-logging/src/test/java/org/onap/policy/drools/controller/logging/ControllerLoggingTest.java +++ b/feature-controller-logging/src/test/java/org/onap/policy/drools/controller/logging/ControllerLoggingTest.java @@ -75,10 +75,6 @@ public class ControllerLoggingTest { private static final String TEST_TOPIC = "test-topic"; private static final String TEST_SERVER = "http://test.com"; - /** - * These are used for sending PDPD configuration notifications to a policy controller. - */ - private static Properties controllerProps = null; private static String message = null; private static PdpdConfiguration pdpdNotification = null; private static PolicyController policyController = null; @@ -110,14 +106,15 @@ public class ControllerLoggingTest { KieUtils.installArtifact(Paths.get(JUNIT_KMODULE_PATH).toFile(), Paths.get(JUNIT_KMODULE_POM_PATH).toFile(), JUNIT_KJAR_DRL_PATH, Paths.get(JUNIT_KMODULE_DRL_PATH).toFile()); - controllerProps = new Properties(); + // These properties are used for sending PDPD configuration notifications to a policy controller. + Properties controllerProps = new Properties(); controllerProps.put(DroolsPropertyConstants.PROPERTY_CONTROLLER_NAME, TEST_CONTROLLER_NAME); controllerProps.put(DroolsPropertyConstants.RULES_GROUPID, TEST_GROUP_ID); controllerProps.put(DroolsPropertyConstants.RULES_ARTIFACTID, TEST_ARTIFACT_ID); controllerProps.put(DroolsPropertyConstants.RULES_VERSION, TEST_VERSION); - policyController = PolicyEngineConstants.getManager().createPolicyController(TEST_CONTROLLER_NAME, - controllerProps); + policyController = + PolicyEngineConstants.getManager().createPolicyController(TEST_CONTROLLER_NAME, controllerProps); message = "{\"requestID\":\"38adde30-cc22-11e8-a8d5-f2801f1b9fd1\",\"entity\":\"controller\",\"controllers\":" + "[{\"name\":\"test-controller\",\"drools\":{\"groupId\":\"org.onap.policy.drools.test\"," |