aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java
diff options
context:
space:
mode:
authorMandar Sawant <ms5838@att.com>2020-08-06 15:03:38 +0000
committerGerrit Code Review <gerrit@onap.org>2020-08-06 15:03:38 +0000
commitb5852a6033d34db4d8e4ad787c40fb03df001733 (patch)
tree59a9fbaf52c454cbea6020fe7baca23fa0841e35 /src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java
parent0e5df61c0ca14822199b402df3ff556e61fe1fd7 (diff)
parentc5a7332b4eb975fd0e50b5dfd80c1d655a246a9a (diff)
Merge "fixed some JUnits"
Diffstat (limited to 'src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java')
-rw-r--r--src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java b/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java
index 9d86d48..ea9cab4 100644
--- a/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java
+++ b/src/test/java/org/onap/dmaap/mr/client/impl/MRMetaClientTest.java
@@ -27,6 +27,8 @@ import java.util.LinkedList;
import java.util.Set;
import org.junit.Before;
import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import com.att.nsa.apiClient.http.HttpException;
import com.att.nsa.apiClient.http.HttpObjectNotFoundException;
@@ -60,6 +62,7 @@ public class MRMetaClientTest {
} catch (IOException e) {
e.printStackTrace();
}
+ assertNotNull(hosts);
// assertEquals ("http://localhost:8080/events/" + "topic/cg/cid", url );
@@ -79,7 +82,8 @@ public class MRMetaClientTest {
TopicInfo topicInfo=c.getTopicMetadata(topic);
} catch (IOException | HttpObjectNotFoundException e) {
e.printStackTrace();
- }
+ }
+ assertNotNull(topic);
}
@@ -95,6 +99,7 @@ public class MRMetaClientTest {
} catch (IOException | HttpException e) {
e.printStackTrace();
}
+ assertNotNull(hosts);
}
@Test
public void testupdateApiKey(){