added test case to TestRequestHandlerInput.java 09/57909/2
authorSandeep J <sandeejh@in.ibm.com>
Fri, 27 Jul 2018 20:41:30 +0000 (02:11 +0530)
committerPatrick Brady <pb071s@att.com>
Fri, 27 Jul 2018 22:16:30 +0000 (22:16 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: Ie0a570c7b20d236d8203d57f1351f34e0b7466d1
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-dispatcher/appc-request-handler/appc-request-handler-api/src/test/java/org/onap/appc/requesthandler/objects/TestRequestHandlerInput.java

index c520fa6..685af76 100644 (file)
@@ -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());
+    }
 }