diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2018-07-31 16:54:37 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-07-31 19:50:08 +0000 |
commit | de3e4d51c325df66a9a34ac7530bb75d067ba7db (patch) | |
tree | 888795c4d2f364a23758043efedda840bff9f387 /appc-dispatcher | |
parent | 4ccf346211f569e111fe665b6a8cc282d9d7de43 (diff) |
added test case to TestWorkFlowResponse.java
to increase code coverage
Issue-ID: APPC-1086
Change-Id: I99d9a92e458a1e4066c7abe2d6595d1ce6c7b946
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-dispatcher')
-rw-r--r-- | appc-dispatcher/appc-workflow-management/appc-workflow-management-api/src/test/java/org/onap/appc/workflow/objects/TestWorkflowResponse.java | 10 |
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()); + } } |