*
* @see TestCase#setUp()
*/
+ @Override
public void setUp() throws Exception {
try {
policyEngine = new PolicyEngine("Test/config_pass.properties");
*
* @see TestCase#tearDown()
*/
+ @Override
public void tearDown() throws Exception {
super.tearDown();
// Add additional tear down code here
@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);
@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);
@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);
@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);
@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);
@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);