// topic names
@Getter
@Value("${pap.topic.pdp-pap.name}")
- private String topicPolicyPdpPap = "POLICY-PDP-PAP";
+ private String topicPolicyPdpPap = "policy-pdp-pap";
@Getter
@Value("${pap.topic.notification.name}")
- private String topicPolicyNotification = "POLICY-NOTIFICATION";
+ private String topicPolicyNotification = "policy-notification";
@Getter
@Value("${pap.topic.heartbeat.name}")
- private String topicPolicyHeartbeat = "POLICY-HEARTBEAT";
+ private String topicPolicyHeartbeat = "policy-heartbeat";
private static final String[] MSG_TYPE_NAMES = { "messageName" };
private static final String[] REQ_ID_NAMES = { "response", "responseTo" };
* @param topic topic of interest
*/
private void registerMsgDispatcher(TopicListener dispatcher, String topic) {
+ topic = topic.toLowerCase();
for (final TopicSource source : TopicEndpointManager.getManager().getTopicSources(List.of(topic))) {
source.register(dispatcher);
}
* @param topic topic of interest
*/
private void unregisterMsgDispatcher(TopicListener dispatcher, String topic) {
+ topic = topic.toLowerCase();
for (final TopicSource source : TopicEndpointManager.getManager().getTopicSources(List.of(topic))) {
source.unregister(dispatcher);
}
import java.io.File;
import java.io.IOException;
-import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import org.onap.policy.common.utils.coder.Coder;
try {
File file = new File(getParamFile());
- String json = new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8);
+ String json = Files.readString(file.toPath());
json = json.replace("${port}", String.valueOf(port));
json = json.replace("${dbName}", "jdbc:h2:mem:testdb" + dbNum);
}
/**
- * Gets the full path to the parameter file, which may vary depending on whether or
- * not this is an end-to-end test.
+ * Gets the full path to the parameter file, which may vary depending on whether
+ * this is an end-to-end test.
*
* @return the parameter file name
*/