X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=PolicyEngineAPI%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Ftest%2FConfigFirewallPolicyTest.java;h=3b0bff6715ffc6168deffc6640b8f25a217ad585;hb=475721f65b7778e1081072df7249c240f94c0643;hp=bb12adc3279618cd432e3eb4c9aa18dc69cb2db4;hpb=9655c9a9f8f20418a7735c72f3479f5b9a9859ba;p=policy%2Fengine.git 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);