From de3e4d51c325df66a9a34ac7530bb75d067ba7db Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Tue, 31 Jul 2018 16:54:37 +0530 Subject: added test case to TestWorkFlowResponse.java to increase code coverage Issue-ID: APPC-1086 Change-Id: I99d9a92e458a1e4066c7abe2d6595d1ce6c7b946 Signed-off-by: Sandeep J --- .../org/onap/appc/workflow/objects/TestWorkflowResponse.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/appc-dispatcher/appc-workflow-management/appc-workflow-management-api/src/test/java/org/onap/appc/workflow/objects/TestWorkflowResponse.java b/appc-dispatcher/appc-workflow-management/appc-workflow-management-api/src/test/java/org/onap/appc/workflow/objects/TestWorkflowResponse.java index 2afa4adad..13ab535a2 100644 --- a/appc-dispatcher/appc-workflow-management/appc-workflow-management-api/src/test/java/org/onap/appc/workflow/objects/TestWorkflowResponse.java +++ b/appc-dispatcher/appc-workflow-management/appc-workflow-management-api/src/test/java/org/onap/appc/workflow/objects/TestWorkflowResponse.java @@ -4,6 +4,8 @@ * ================================================================================ * Copyright 2018 TechMahindra *================================================================================= +* Modification Copyright 2018 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 @@ -22,6 +24,7 @@ package org.onap.appc.workflow.objects; import static org.junit.Assert.*; import org.junit.Test; +import org.onap.appc.domainmodel.lcm.ResponseContext; public class TestWorkflowResponse { private WorkflowResponse workflowResponse=new WorkflowResponse(); @@ -35,4 +38,11 @@ public class TestWorkflowResponse { public void testToString_ContainsString() { assertTrue(workflowResponse.toString().contains("responseContext")); } + + @Test + public void testGetResponseContext() { + ResponseContext responseContext= new ResponseContext(); + workflowResponse.setResponseContext(responseContext); + assertEquals(responseContext, workflowResponse.getResponseContext()); + } } -- cgit 1.2.3-korg