summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appc-dispatcher/appc-workflow-management/appc-workflow-management-api/src/test/java/org/onap/appc/workflow/objects/TestWorkflowResponse.java10
1 files changed, 10 insertions, 0 deletions
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());
+ }
}