summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());
+ }
}