aboutsummaryrefslogtreecommitdiffstats
path: root/appc-dispatcher/appc-request-handler
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-07-28 02:17:54 +0530
committerTakamune Cho <tc012c@att.com>2018-07-29 21:23:37 +0000
commit843052225ac96b88a306d1ec32af3ec21b448138 (patch)
treefdb2f93286ff9a0c62155a3d2cc06bf6cb884db4 /appc-dispatcher/appc-request-handler
parent384f7dd8746b673eb9754cdb1e3ce9f9358c37e5 (diff)
added test case to TestResponseHandlerOutput.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I7cb23c2e389a8c0d8d153cb241b726360a759f03 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-dispatcher/appc-request-handler')
-rw-r--r--appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerOutput.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerOutput.java b/appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerOutput.java
index acc0942d8..252c08cfb 100644
--- a/appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerOutput.java
+++ b/appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerOutput.java
@@ -4,6 +4,8 @@
* ================================================================================
* Copyright 2018 TechMahindra
*=================================================================================
+* Modifications 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.requesthandler.objects;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
+import org.onap.appc.domainmodel.lcm.ResponseContext;
public class TestRequestHandlerOutput {
private RequestHandlerOutput requestHandlerOutput;
@@ -41,4 +44,11 @@ public class TestRequestHandlerOutput {
public void testToString_ContainsString() {
Assert.assertTrue(requestHandlerOutput.toString().contains("responseContext"));
}
+
+ @Test
+ public void testGetResponseContext() {
+ ResponseContext responseContext= new ResponseContext();
+ requestHandlerOutput.setResponseContext(responseContext);
+ Assert.assertEquals(responseContext, requestHandlerOutput.getResponseContext());
+ }
}