From 4cdb5d95d17ab91e0e7149d045ea6d8eb31d3ab7 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Tue, 21 Aug 2018 17:12:18 +0530 Subject: added test cases to TestRequestContext.java to increase code coverage Issue-ID: APPC-1086 Change-Id: I32fc17823608fb0c79f11b3385379e34f6eb49cc Signed-off-by: Sandeep J --- .../onap/appc/domainmodel/lcm/TestRequestContext.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'appc-dispatcher') 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()); + } } -- cgit 1.2.3-korg