diff options
author | 2018-03-01 13:38:34 -0500 | |
---|---|---|
committer | 2018-03-01 13:38:52 -0500 | |
commit | e4b4698dd337651821a0a8bfc4b207e80ac0520e (patch) | |
tree | 683b854c55c15b49e28b9c4b53d58c0dc25cf1cb /src/test/java/com/att/nsa/cambria/beans/LogDetailsTest.java | |
parent | 907bb776273e1bf41331609c51dc520c3d4fa181 (diff) |
added testcases for code coverage
Issue-ID: DMAAP-271
Change-Id: Ied157de1ed476c67bcc6d5f7b13a90127e036533
Signed-off-by: Sunil Unnava <su622b@att.com>
Diffstat (limited to 'src/test/java/com/att/nsa/cambria/beans/LogDetailsTest.java')
-rw-r--r-- | src/test/java/com/att/nsa/cambria/beans/LogDetailsTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/com/att/nsa/cambria/beans/LogDetailsTest.java b/src/test/java/com/att/nsa/cambria/beans/LogDetailsTest.java index 5d10637..b409e1e 100644 --- a/src/test/java/com/att/nsa/cambria/beans/LogDetailsTest.java +++ b/src/test/java/com/att/nsa/cambria/beans/LogDetailsTest.java @@ -49,6 +49,20 @@ public class LogDetailsTest { }
+ @Test
+ public void testGetPublisherLogDetails(){
+
+ LogDetails details = new LogDetails();
+ details.setTotalMessageCount(1);
+ details.setConsumeTimestamp("02-27-1018");
+ details.setSubscriberGroupId("1");
+ details.setSubscriberId("1");
+ assertEquals(details.getTotalMessageCount(),1);
+ assertEquals(details.getConsumeTimestamp(),"02-27-1018");
+ assertEquals(details.getSubscriberId(),"1");
+ assertEquals(details.getSubscriberGroupId(),"1");
+ }
+
}
|