From a915cce776fc4094c0cb20840a783389d9951067 Mon Sep 17 00:00:00 2001 From: ajay priyadarshi Date: Wed, 28 Mar 2018 12:45:09 +0530 Subject: Sonar:Access management wfenginemgr common/RestClient.java file name:RestClient.java Change-Id: Idabb6ed057ab678178e11092eaf3d307c4f51dc7 Issue-ID: VFC-857 Signed-off-by: ajay priyadarshi --- .../src/main/java/org/onap/workflow/common/RestClient.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'wfenginemgrservice/src/main') diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java index f38fe11..2a6ba34 100644 --- a/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java @@ -45,8 +45,7 @@ public class RestClient { private static final String HTTP = "http"; private static final Logger logger = LoggerFactory.getLogger(RestClient.class); - //PublicExposureUsedInTest - public static boolean isTest = false; + private static boolean isTest = false; public enum HttpMethod { GET, POST, PUT, DELETE @@ -287,4 +286,12 @@ public class RestClient { return executeHttpDeleteDeploy(HttpMethod.DELETE, ip, port, url); } + public static boolean getIsTest(){ + return isTest; + } + + public static void setIsTest(boolean arg){ + isTest = arg; + } + } -- cgit 1.2.3-korg