diff options
author | rb7147 <rb7147@att.com> | 2017-07-26 10:11:15 -0400 |
---|---|---|
committer | rb7147 <rb7147@att.com> | 2017-07-26 11:53:31 -0400 |
commit | d80880b097d08f9ab9dda54355216890a4b345dc (patch) | |
tree | 6c7b6caec61dbada2201f7ee14c8c1e027106d6d /POLICY-SDK-APP/src/test | |
parent | e92ff832cf993db876f22b2d27562fedf59f5043 (diff) |
[POLICY-117] Resolve the Policy Critical issues
Change-Id: Ice72d7fa40151bff5db42f5dd632f04a3853b094
Signed-off-by: rb7147 <rb7147@att.com>
Diffstat (limited to 'POLICY-SDK-APP/src/test')
2 files changed, 11 insertions, 1 deletions
diff --git a/POLICY-SDK-APP/src/test/java/org/openecomp/policy/admin/PolicyManagerServletTest.java b/POLICY-SDK-APP/src/test/java/org/openecomp/policy/admin/PolicyManagerServletTest.java index a25027679..9fd1801ae 100644 --- a/POLICY-SDK-APP/src/test/java/org/openecomp/policy/admin/PolicyManagerServletTest.java +++ b/POLICY-SDK-APP/src/test/java/org/openecomp/policy/admin/PolicyManagerServletTest.java @@ -139,6 +139,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void testDescribePolicy(){ PolicyManagerServlet servlet = new PolicyManagerServlet(); @@ -159,6 +160,7 @@ public class PolicyManagerServletTest extends Mockito{ } + @SuppressWarnings("static-access") @Test public void testPolicyScopeList(){ PolicyManagerServlet servlet = new PolicyManagerServlet(); @@ -186,6 +188,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editBasePolicyTest(){ PolicyManagerServlet servlet = new PolicyManagerServlet(); @@ -210,6 +213,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editBRMSParamPolicyTest(){ List<Object> policyData = new ArrayList<>(); @@ -255,6 +259,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editBRMSRawPolicyTest(){ List<Object> policyData = new ArrayList<>(); @@ -300,6 +305,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editClosedLoopFaultPolicyTest(){ List<Object> policyData = new ArrayList<>(); @@ -345,6 +351,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editClosedLoopPMPolicyTest(){ List<Object> policyData = new ArrayList<>(); @@ -390,6 +397,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editMicroServicePolicyTest(){ GroupPolicyScopeList groupData = new GroupPolicyScopeList(); @@ -443,6 +451,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editFirewallPolicyTest(){ List<Object> policyData = new ArrayList<>(); @@ -488,6 +497,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editActionPolicyTest(){ List<Object> policyData = new ArrayList<>(); @@ -531,6 +541,7 @@ public class PolicyManagerServletTest extends Mockito{ } } + @SuppressWarnings("static-access") @Test public void editDecisionPolicyTest(){ List<Object> policyData = new ArrayList<>(); diff --git a/POLICY-SDK-APP/src/test/java/org/openecomp/policy/controller/CreateDcaeMicroServiceControllerTest.java b/POLICY-SDK-APP/src/test/java/org/openecomp/policy/controller/CreateDcaeMicroServiceControllerTest.java index ca915440e..b4619b852 100644 --- a/POLICY-SDK-APP/src/test/java/org/openecomp/policy/controller/CreateDcaeMicroServiceControllerTest.java +++ b/POLICY-SDK-APP/src/test/java/org/openecomp/policy/controller/CreateDcaeMicroServiceControllerTest.java @@ -169,7 +169,6 @@ public class CreateDcaeMicroServiceControllerTest { //expect: uniqueKeys should contain a string value CreateDcaeMicroServiceController controllerA = new CreateDcaeMicroServiceController(); String str = "testing\\.byCorrectWay\\.OfDATA"; - String value = null; assertEquals(1, controllerA.stringBetweenDots(str)); //expect: uniqueKeys should not contain a string value |