From cce79248655f484e007769ba81b092148f940d27 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Tue, 9 Jan 2024 15:19:07 +0000 Subject: Drools support for kafka topics Issue-ID: POLICY-4201 Change-Id: I91676c168c676018aa1079943747f16917f50a49 Signed-off-by: adheli.tavares --- .../org/onap/policy/drools/legacy/config/LegacyConfigTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'feature-legacy-config') diff --git a/feature-legacy-config/src/test/java/org/onap/policy/drools/legacy/config/LegacyConfigTest.java b/feature-legacy-config/src/test/java/org/onap/policy/drools/legacy/config/LegacyConfigTest.java index d970585b..eb8860d2 100644 --- a/feature-legacy-config/src/test/java/org/onap/policy/drools/legacy/config/LegacyConfigTest.java +++ b/feature-legacy-config/src/test/java/org/onap/policy/drools/legacy/config/LegacyConfigTest.java @@ -3,6 +3,7 @@ * ONAP * ================================================================================ * Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2024 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +36,8 @@ import org.onap.policy.drools.persistence.SystemPersistenceConstants; public class LegacyConfigTest { + private static final String PDPD_CONFIGURATION_TOPIC = "pdpd-configuration"; + /** * Set up. */ @@ -61,7 +64,7 @@ public class LegacyConfigTest { assertTrue(config.start()); assertTrue(config.isAlive()); - config.onTopicEvent(Topic.CommInfrastructure.NOOP, "PDPD-CONFIGURATION", "{}"); + config.onTopicEvent(Topic.CommInfrastructure.NOOP, PDPD_CONFIGURATION_TOPIC, "{}"); assertTrue(config.isAlive()); assertTrue(config.stop()); @@ -75,7 +78,7 @@ public class LegacyConfigTest { public void testConstructors() { LegacyConfig config = new LegacyConfig(); assertNotNull(config.getProperties()); - assertEquals("PDPD-CONFIGURATION", config.getSource().getTopic()); + assertEquals(PDPD_CONFIGURATION_TOPIC, config.getSource().getTopic()); SystemPersistenceConstants.getManager().setConfigurationDir("target/test-classes/bad-properties-1"); assertThatIllegalStateException().isThrownBy(LegacyConfig::new); -- cgit 1.2.3-korg