From 41e91dd1fac9873d8ac37b00156eaec8d383f3e0 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Sat, 28 Jul 2018 02:11:30 +0530 Subject: added test case to TestRequestHandlerInput.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Ie0a570c7b20d236d8203d57f1351f34e0b7466d1 Signed-off-by: Sandeep J --- .../appc/requesthandler/objects/TestRequestHandlerInput.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'appc-dispatcher/appc-request-handler') 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()); + } } -- cgit 1.2.3-korg