added test case to InputBodyTest.java 28/84228/1
authorSandeep J <sandeejh@in.ibm.com>
Thu, 4 Apr 2019 10:07:27 +0000 (15:37 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Thu, 4 Apr 2019 10:07:40 +0000 (15:37 +0530)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: I3406fedf206902eba8374dbc47852bc28bfdeccf
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/model/InputBodyTest.java

index 009e99e..21a9595 100644 (file)
@@ -6,6 +6,8 @@
  * ================================================================================
  * Copyright (C) 2018 Nokia Solutions and Networks
  * =============================================================================
+ * Modifications Copyright (C) 2019 IBM.
+ * =============================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -64,6 +66,13 @@ public class InputBodyTest {
         inputBody.setCommonHeader(buildCommonHeader());
         assertTrue(inputBody.isValid());
     }
+    
+    @Test
+    public void testPayLoadAsString()
+    {
+       inputBody.setPayloadAsString("payload");
+       assertEquals("payload", inputBody.getPayload());
+    }
 
 
 }