summaryrefslogtreecommitdiffstats
path: root/ONAP-PDP-REST/src/main/java/org/onap
diff options
context:
space:
mode:
authorMichael Mokry <mm117s@att.com>2018-02-15 07:23:11 -0600
committerMichael Mokry <mm117s@att.com>2018-02-15 07:28:07 -0600
commitaee733bc72df351a0e3c4aa4df7807362fb515c1 (patch)
tree726d68df3c00617089640f0055da8b19e15c1baf /ONAP-PDP-REST/src/main/java/org/onap
parent472f049b84fd69caa1e0a07bbe3e088bbfd0a44d (diff)
Adding Junits in ONAP-PDP-REST
- This commit adds one Junit for PAPServices - I needed to make a minor modification to the PAPServices class in order to set the PAPs Change-Id: Ia54650307e8d9e96d40ce6e68ad18508d4030a4a Issue-ID: POLICY-338 Signed-off-by: Michael Mokry <mm117s@att.com>
Diffstat (limited to 'ONAP-PDP-REST/src/main/java/org/onap')
-rw-r--r--ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/services/PAPServices.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/services/PAPServices.java b/ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/services/PAPServices.java
index 57a80b5d1..9ab4252c7 100644
--- a/ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/services/PAPServices.java
+++ b/ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/services/PAPServices.java
@@ -53,9 +53,9 @@ public class PAPServices {
private int responseCode = 0;
private static String environment = "DEVL";
- private static Boolean junit = false;
+ public static Boolean junit = false;
private static List<String> paps = null;
- private static final Object papResourceLock = new Object();
+ private static final Object papResourceLock = new Object();
private String operation = null;
private String requestMethod = null;
private String encoding = null;
@@ -96,6 +96,10 @@ public class PAPServices {
}
return result;
}
+
+ public static void setPaps(List<String> paps) {
+ PAPServices.paps = paps;
+ }
public int getResponseCode() {
return responseCode;