summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-04-04 15:37:27 +0530
committerSandeep J <sandeejh@in.ibm.com>2019-04-04 15:37:40 +0530
commite806a30d05b89bb61cf5a6fad4458c6333d0b6f4 (patch)
tree1d51c4d5cc69e1ddb85b08dcd8d16c0ea6e10a08
parent519ff3f34b42e41fbd995fe0c08a75f60a00be14 (diff)
added test case to InputBodyTest.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I3406fedf206902eba8374dbc47852bc28bfdeccf Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/model/InputBodyTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/model/InputBodyTest.java b/appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/model/InputBodyTest.java
index 009e99e71..21a95955c 100644
--- a/appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/model/InputBodyTest.java
+++ b/appc-event-listener/appc-event-listener-bundle/src/test/java/org/onap/appc/listener/LCM/model/InputBodyTest.java
@@ -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());
+ }
}