aboutsummaryrefslogtreecommitdiffstats
path: root/appc-dispatcher
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-21 17:12:18 +0530
committerTakamune Cho <tc012c@att.com>2018-08-21 16:15:27 +0000
commit4cdb5d95d17ab91e0e7149d045ea6d8eb31d3ab7 (patch)
tree98fca86644a967b125084fe8f31dfb9284c7cf20 /appc-dispatcher
parent998de995faf5d554c0d07871b712c26374a5cda0 (diff)
added test cases to TestRequestContext.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I32fc17823608fb0c79f11b3385379e34f6eb49cc Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-dispatcher')
-rw-r--r--appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestRequestContext.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestRequestContext.java b/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestRequestContext.java
index 6e54ae187..b825a22b9 100644
--- a/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestRequestContext.java
+++ b/appc-dispatcher/appc-dispatcher-common/domain-model-lib/src/test/java/org/onap/appc/domainmodel/lcm/TestRequestContext.java
@@ -82,5 +82,21 @@ public class TestRequestContext {
public void testToString_ContainsString() {
assertTrue(requestContext.toString().contains("RequestContext{commonHeader"));
}
+
+ @Test
+ public void testGetSetCommonHeader()
+ {
+ CommonHeader commonHeader = new CommonHeader();
+ requestContext.setCommonHeader(commonHeader);
+ assertEquals(commonHeader, requestContext.getCommonHeader());
+ }
+
+ @Test
+ public void testGetSetActionIdentifiers()
+ {
+ ActionIdentifiers actionIdentifiers= new ActionIdentifiers();
+ requestContext.setActionIdentifiers(actionIdentifiers);
+ assertEquals(actionIdentifiers, requestContext.getActionIdentifiers());
+ }
}