added test case to TestWorkFlowResponse.java 25/58225/3
authorSandeep J <sandeejh@in.ibm.com>
Tue, 31 Jul 2018 11:24:37 +0000 (16:54 +0530)
committerTakamune Cho <tc012c@att.com>
Tue, 31 Jul 2018 19:50:08 +0000 (19:50 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: I99d9a92e458a1e4066c7abe2d6595d1ce6c7b946
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-dispatcher/appc-workflow-management/appc-workflow-management-api/src/test/java/org/onap/appc/workflow/objects/TestWorkflowResponse.java

index 2afa4ad..13ab535 100644 (file)
@@ -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());
+    }
 }