aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-distribution-client/src/test/java/org/onap/sdc/utils/KafkaCommonConfigTest.java
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2023-05-08 18:17:03 +0100
committerefiacor <fiachra.corcoran@est.tech>2023-06-13 18:56:19 +0100
commitac4baf28eab0a4412810f02237b981933c985e95 (patch)
treec9fc3c3a6c35e5481b261ff2acc912bdf708fa12 /sdc-distribution-client/src/test/java/org/onap/sdc/utils/KafkaCommonConfigTest.java
parent289c0ceb2b3b0565ae19014a4cfa06a1bf10ccc3 (diff)
[SDC-DISTRO-CLIENT] SSL config updates
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: Iacaf5072241e56bf72db13acef0f533814ae8989 Issue-ID: SDC-4476
Diffstat (limited to 'sdc-distribution-client/src/test/java/org/onap/sdc/utils/KafkaCommonConfigTest.java')
-rw-r--r--sdc-distribution-client/src/test/java/org/onap/sdc/utils/KafkaCommonConfigTest.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/sdc-distribution-client/src/test/java/org/onap/sdc/utils/KafkaCommonConfigTest.java b/sdc-distribution-client/src/test/java/org/onap/sdc/utils/KafkaCommonConfigTest.java
index 36730b5..a60a785 100644
--- a/sdc-distribution-client/src/test/java/org/onap/sdc/utils/KafkaCommonConfigTest.java
+++ b/sdc-distribution-client/src/test/java/org/onap/sdc/utils/KafkaCommonConfigTest.java
@@ -35,8 +35,7 @@ public class KafkaCommonConfigTest {
@Test
public void testConsumerPropertiesNoSSL(){
- List<String> msgBusAddress = new ArrayList<>();
- msgBusAddress.add("address1");
+ String msgBusAddress = "address1";
testConfigNoSSL.setMsgBusAddress(msgBusAddress);
KafkaCommonConfig kafkaCommonConfig = new KafkaCommonConfig(testConfigNoSSL);
Properties consumerProperties = kafkaCommonConfig.getConsumerProperties();
@@ -45,8 +44,7 @@ public class KafkaCommonConfigTest {
@Test
public void testProducerPropertiesWithSSL(){
- List<String> msgBusAddress = new ArrayList<>();
- msgBusAddress.add("address1");
+ String msgBusAddress = "address1";
testConfigWithSSL.setMsgBusAddress(msgBusAddress);
KafkaCommonConfig kafkaCommonConfig = new KafkaCommonConfig(testConfigWithSSL);
Properties consumerProperties = kafkaCommonConfig.getProducerProperties();