summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2021-08-10 15:25:15 +0100
committerefiacor <fiachra.corcoran@est.tech>2021-08-11 15:02:20 +0100
commit8c4608e47af8fa5da4f4f2f6bd7eda723b37d8e2 (patch)
tree55914ef9e72784500a75cbead4c8b0d40eb44e10 /src
parent0beea783cef8a84d8bc2655ea678e00d459cc831 (diff)
[DMAAP-MR] Sonar coverage fix
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: Iaba44489b4bec15e0a8bb1ae6a2e18ff3917e60e Issue-ID: DMAAP-1638
Diffstat (limited to 'src')
-rw-r--r--src/test/java/org/onap/dmaap/mr/cambria/embed/KafkaLocal.java2
-rw-r--r--src/test/java/org/onap/dmaap/service/UIRestServicesTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/onap/dmaap/mr/cambria/embed/KafkaLocal.java b/src/test/java/org/onap/dmaap/mr/cambria/embed/KafkaLocal.java
index 17c5bbb..43dcd6c 100644
--- a/src/test/java/org/onap/dmaap/mr/cambria/embed/KafkaLocal.java
+++ b/src/test/java/org/onap/dmaap/mr/cambria/embed/KafkaLocal.java
@@ -41,7 +41,7 @@ public class KafkaLocal {
zookeeper = new ZooKeeperLocal(zkProperties);
zookeeper.run();
System.out.println("done");
-
+ Thread.sleep(5000);
//start local kafka broker
final scala.Option<String> prefix = scala.Option.apply("kafka");
kafka = new KafkaServer(kafkaConfig, Time.SYSTEM, prefix, false);
diff --git a/src/test/java/org/onap/dmaap/service/UIRestServicesTest.java b/src/test/java/org/onap/dmaap/service/UIRestServicesTest.java
index 3024484..77d8b01 100644
--- a/src/test/java/org/onap/dmaap/service/UIRestServicesTest.java
+++ b/src/test/java/org/onap/dmaap/service/UIRestServicesTest.java
@@ -107,7 +107,7 @@ public class UIRestServicesTest {
Class clazz = null;
Method method = null;
try {
- clazz = Class.forName("UIRestServices");
+ clazz = Class.forName("org.onap.dmaap.service.UIRestServices");
Object obj = clazz.newInstance();
method = clazz.getDeclaredMethod("getDmaapContext", null);
method.setAccessible(true);