aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-07-28 02:11:30 +0530
committerPatrick Brady <pb071s@att.com>2018-07-27 22:16:30 +0000
commit41e91dd1fac9873d8ac37b00156eaec8d383f3e0 (patch)
tree0465b55665d8d16369d6d9471ec45288e004bc2b
parent8e635a0786241b28a788b58acfc67adcde8b2c7e (diff)
added test case to TestRequestHandlerInput.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: Ie0a570c7b20d236d8203d57f1351f34e0b7466d1 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerInput.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/TestRequestHandlerInput.java b/appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerInput.java
index c520fa6f6..685af76ff 100644
--- a/appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerInput.java
+++ b/appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerInput.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.RequestContext;
public class TestRequestHandlerInput {
private RequestHandlerInput requestHandlerInput;
@@ -48,4 +51,11 @@ public class TestRequestHandlerInput {
public void testToString_ContainsString() {
Assert.assertTrue(requestHandlerInput.toString().contains("requestContext"));
}
+
+ @Test
+ public void testGetRequestContext() {
+ RequestContext requestContext= new RequestContext();
+ requestHandlerInput.setRequestContext(requestContext);
+ Assert.assertEquals(requestContext, requestHandlerInput.getRequestContext());
+ }
}