commit | 4cdb5d95d17ab91e0e7149d045ea6d8eb31d3ab7 | [log] [tgz] |
---|---|---|
author | Sandeep J <sandeejh@in.ibm.com> | Tue Aug 21 17:12:18 2018 +0530 |
committer | Takamune Cho <tc012c@att.com> | Tue Aug 21 16:15:27 2018 +0000 |
tree | 98fca86644a967b125084fe8f31dfb9284c7cf20 | |
parent | 998de995faf5d554c0d07871b712c26374a5cda0 [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>
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 6e54ae1..b825a22 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 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()); + } }