output.setLength(0);
/*
* Workflow Action events
*/
WorkflowActionEvent event3 = new WorkflowActionEvent("parentid@wfaction", "parentid",
WorkflowAction.Status.RUNNING, getTestUser(), "myapp", null, null);
ehs.queueEvent(event3);
ehs.new EventWorker().run();
assertTrue(output.toString().contains("Workflow Action event STARTED"));
output.setLength(0);
event3.setStatus(WorkflowAction.Status.START_MANUAL);
ehs.queueEvent(event3);
ehs.new EventWorker().run();
assertTrue(output.toString().contains("Workflow Action event SUSPEND"));
output.setLength(0);
event3.setStatus(WorkflowAction.Status.OK);
ehs.queueEvent(event3);
ehs.new EventWorker().run();
assertTrue(output.toString().contains("Workflow Action event SUCCESS"));
output.setLength(0);
event3.setStatus(WorkflowAction.Status.ERROR);
ehs.queueEvent(event3);
ehs.new EventWorker().run();
assertTrue(output.toString().contains("Workflow Action event FAILURE"));
output.setLength(0);
event3.setStatus(WorkflowAction.Status.KILLED);
ehs.queueEvent(event3);
ehs.new EventWorker().run();
assertTrue(output.toString().contains("Workflow Action event FAILURE"));
output.setLength(0);
event3.setStatus(WorkflowAction.Status.FAILED);
ehs.queueEvent(event3);
ehs.new EventWorker().run();
assertTrue(output.toString().contains("Workflow Action event FAILURE"));
output.setLength(0);