diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-04-04 00:42:33 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-04-04 13:34:49 +0000 |
commit | 9341d2ae29e7722c2edb1d7436c04f85e6469134 (patch) | |
tree | 3925db65e8910c9f5765134c0c51e28141d77434 /appc-dispatcher/appc-request-handler/appc-request-handler-core | |
parent | c06016a8c55d1363c17e1993fa4bdeb0bc2d64ab (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/appc-request-handler-core')
-rw-r--r-- | appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/impl/DmaapOutgoingMessageTest.java | 8 |
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()); + } } |