protected Void execute() {
WorkflowXCommand.generateEvent(job, "errorCode", "errorMsg");
return null;
}
};
myCmd.call();
WorkflowJobEvent event = (WorkflowJobEvent) queue.poll();
assertNotNull(event);
assertEquals("errorCode", event.getErrorCode());
assertEquals("errorMsg", event.getErrorMessage());
assertEquals(EventStatus.FAILURE, event.getEventStatus());