summaryrefslogtreecommitdiffstats
path: root/appc-dispatcher
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-04-01 13:31:24 +0530
committerSandeep J <sandeejh@in.ibm.com>2019-04-01 13:31:34 +0530
commitc1210e019467a0fd417f05f32150324682f64bc7 (patch)
treecb65aa492a8f3f45eebc51599efc882158e97bec /appc-dispatcher
parent7052239e67c82bc2e4a8097aae0a3224236aba87 (diff)
added test case to RequestDataTest.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I646694445953c690fb4c8e336346deb3f5e3b4df Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-dispatcher')
-rw-r--r--appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/model/RequestDataTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/model/RequestDataTest.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/model/RequestDataTest.java
index d82e5cf9f..b7c60c761 100644
--- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/model/RequestDataTest.java
+++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/test/java/org/onap/appc/requesthandler/model/RequestDataTest.java
@@ -23,6 +23,9 @@ package org.onap.appc.requesthandler.model;
import static org.junit.Assert.assertEquals;
+import java.util.ArrayList;
+import java.util.List;
+
import org.junit.Before;
import org.junit.Test;
@@ -47,5 +50,12 @@ public class RequestDataTest {
requestData.setCurrentRequest(requestModel);
assertEquals(requestModel, requestData.getCurrentRequest());
}
+
+ @Test
+ public void testInProgressRequests() {
+ List<RequestModel> inProgressRequests = new ArrayList<>();
+ requestData.setInProgressRequests(inProgressRequests);
+ assertEquals(inProgressRequests, requestData.getInProgressRequests());
+ }
}