summaryrefslogtreecommitdiffstats
path: root/appc-dispatcher/appc-request-handler
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-04-04 00:42:33 +0530
committerTakamune Cho <takamune.cho@att.com>2019-04-04 13:34:49 +0000
commit9341d2ae29e7722c2edb1d7436c04f85e6469134 (patch)
tree3925db65e8910c9f5765134c0c51e28141d77434 /appc-dispatcher/appc-request-handler
parentc06016a8c55d1363c17e1993fa4bdeb0bc2d64ab (diff)
added test case to DmaapOutgoingMessageTest
to increase code coverage Issue-ID: APPC-1086 Change-Id: Ia441f83ad6602a89d81e5c66b0120a6c857672c4 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-dispatcher/appc-request-handler')
-rw-r--r--appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/impl/DmaapOutgoingMessageTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/impl/DmaapOutgoingMessageTest.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/impl/DmaapOutgoingMessageTest.java
index 86cf71e5e..0f0fd1b04 100644
--- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/impl/DmaapOutgoingMessageTest.java
+++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/impl/DmaapOutgoingMessageTest.java
@@ -30,10 +30,12 @@ import org.junit.Test;
public class DmaapOutgoingMessageTest {
private DmaapOutgoingMessage dmaapOutgoingMessage;
+ private DmaapOutgoingMessage.Body body;
@Before
public void setUp() {
dmaapOutgoingMessage = new DmaapOutgoingMessage();
+ body = new DmaapOutgoingMessage.Body();
}
@Test
@@ -56,5 +58,11 @@ public class DmaapOutgoingMessageTest {
String expected = "DmaapOutgoingMessage{cambriaPartition='CambriaPartition', rpcName='rpcName', body=null}";
assertEquals(expected, dmaapOutgoingMessage.toString());
}
+
+ @Test
+ public void testOutput() {
+ body.setOutput("Output");
+ assertEquals("Output", body.getOutput());
+ }
}