diff options
author | Hengye <yehui.wang@est.tech> | 2019-03-15 01:19:39 +0000 |
---|---|---|
committer | Hengye <yehui.wang@est.tech> | 2019-03-15 01:19:39 +0000 |
commit | 475721f65b7778e1081072df7249c240f94c0643 (patch) | |
tree | 2a4cb77c9ba09deb8f98a5d603bfaadaa386bad6 /PolicyEngineAPI/src/test | |
parent | 6be302e455460b62865bae6ab23e7e3dc683193b (diff) |
uplift oparent version 1.2.1->1.2.3
spring-web 5.0.9.RELEASE -> 5.1.2.RELEASE
String org.springframework.http.HttpStatus.toString()
return Integer.toString(this.value)//spring-web 5.0.9.RELEASE
return Integer.toString(this.value) + " " + name();//spring-web
5.1.2.RELEASE
Issue-ID: POLICY-1261
Change-Id: I24bd1f1568c49108288ebdd741d93db09545856b
Signed-off-by: Hengye <yehui.wang@est.tech>
Diffstat (limited to 'PolicyEngineAPI/src/test')
-rw-r--r-- | PolicyEngineAPI/src/test/java/org/onap/policy/test/ConfigFirewallPolicyTest.java | 14 | ||||
-rw-r--r-- | PolicyEngineAPI/src/test/java/org/onap/policy/test/DecisionPolicyApiTest.java | 14 |
2 files changed, 16 insertions, 12 deletions
diff --git a/PolicyEngineAPI/src/test/java/org/onap/policy/test/ConfigFirewallPolicyTest.java b/PolicyEngineAPI/src/test/java/org/onap/policy/test/ConfigFirewallPolicyTest.java index bb12adc32..3b0bff671 100644 --- a/PolicyEngineAPI/src/test/java/org/onap/policy/test/ConfigFirewallPolicyTest.java +++ b/PolicyEngineAPI/src/test/java/org/onap/policy/test/ConfigFirewallPolicyTest.java @@ -58,6 +58,7 @@ public class ConfigFirewallPolicyTest extends TestCase { * * @see TestCase#setUp() */ + @Override public void setUp() throws Exception { try { policyEngine = new PolicyEngine("Test/config_pass.properties"); @@ -119,6 +120,7 @@ public class ConfigFirewallPolicyTest extends TestCase { * * @see TestCase#tearDown() */ + @Override public void tearDown() throws Exception { super.tearDown(); // Add additional tear down code here @@ -204,7 +206,7 @@ public class ConfigFirewallPolicyTest extends TestCase { @Test public final void testCreatePolicyNullPolicyName() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setPolicyName(null); try { result = policyEngine.createPolicy(policyParameters); @@ -216,7 +218,7 @@ public class ConfigFirewallPolicyTest extends TestCase { @Test public final void testCreatePolicyNullPolicyScope() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setPolicyName("test"); try { result = policyEngine.createPolicy(policyParameters); @@ -228,7 +230,7 @@ public class ConfigFirewallPolicyTest extends TestCase { @Test public final void testCreatePolicyNullPolicyConfigBody() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setConfigBody(null); try { result = policyEngine.createPolicy(policyParameters); @@ -240,7 +242,7 @@ public class ConfigFirewallPolicyTest extends TestCase { @Test public final void testUpdatePolicyNullPolicyName() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setPolicyName(null); try { result = policyEngine.updatePolicy(policyParameters); @@ -252,7 +254,7 @@ public class ConfigFirewallPolicyTest extends TestCase { @Test public final void testUpdatePolicyNullPolicyScope() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setPolicyName("test"); try { result = policyEngine.updatePolicy(policyParameters); @@ -264,7 +266,7 @@ public class ConfigFirewallPolicyTest extends TestCase { @Test public final void testUpdatePolicyNullPolicyConfigBody() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setConfigBody(null); try { result = policyEngine.createPolicy(policyParameters); diff --git a/PolicyEngineAPI/src/test/java/org/onap/policy/test/DecisionPolicyApiTest.java b/PolicyEngineAPI/src/test/java/org/onap/policy/test/DecisionPolicyApiTest.java index c6dd0d7a7..d70ecef2c 100644 --- a/PolicyEngineAPI/src/test/java/org/onap/policy/test/DecisionPolicyApiTest.java +++ b/PolicyEngineAPI/src/test/java/org/onap/policy/test/DecisionPolicyApiTest.java @@ -62,6 +62,7 @@ public class DecisionPolicyApiTest extends TestCase { * * @see TestCase#setUp() */ + @Override public void setUp() throws Exception { try { policyEngine = new PolicyEngine("Test/config_pass.properties"); @@ -97,6 +98,7 @@ public class DecisionPolicyApiTest extends TestCase { * * @see TestCase#tearDown() */ + @Override public void tearDown() throws Exception { super.tearDown(); // Add additional tear down code here @@ -138,7 +140,7 @@ public class DecisionPolicyApiTest extends TestCase { @Test public final void testCreatePolicyNullPolicyName() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setPolicyName(null); try { result = policyEngine.createPolicy(policyParameters); @@ -150,7 +152,7 @@ public class DecisionPolicyApiTest extends TestCase { @Test public final void testCreatePolicyNullPolicyScope() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setPolicyName("test"); try { result = policyEngine.createPolicy(policyParameters); @@ -162,7 +164,7 @@ public class DecisionPolicyApiTest extends TestCase { @Test public final void testCreatePolicyNullOnapName() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setOnapName(null); try { result = policyEngine.createPolicy(policyParameters); @@ -174,7 +176,7 @@ public class DecisionPolicyApiTest extends TestCase { @Test public final void testUpdatePolicyNullPolicyName() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setPolicyName(null); try { result = policyEngine.updatePolicy(policyParameters); @@ -186,7 +188,7 @@ public class DecisionPolicyApiTest extends TestCase { @Test public final void testUpdatePolicyNullPolicyScope() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setPolicyName("test"); try { result = policyEngine.updatePolicy(policyParameters); @@ -198,7 +200,7 @@ public class DecisionPolicyApiTest extends TestCase { @Test public final void testUpdatePolicyNullOnapName() { - response.setResponseMessage("PE500 - Process Flow Issue: :500:"); + response.setResponseMessage("PE500 - Process Flow Issue: :500 INTERNAL_SERVER_ERROR:"); policyParameters.setOnapName(null); try { result = policyEngine.updatePolicy(policyParameters); |