@Test void testLogExceptionAndStoreExceptionContentError() { prepareProgressMessagesService(); processStepHelper.logExceptionAndStoreProgressMessage(context, new ContentException("content exception")); Mockito.verify(context) .setVariable(Variables.ERROR_TYPE, ErrorType.CONTENT_ERROR); Mockito.verify(progressMessageService) .add(any()); }
protected void logExceptionAndStoreProgressMessage(ProcessContext context, Throwable t) { logException(context, t); storeExceptionInProgressMessageService(context, t); }
ProcessStepHelper { protected void logExceptionAndStoreProgressMessage(ProcessContext context, Throwable t) { logException(context, t); storeExceptionInProgressMessageService(context, t); } }
ProcessStepHelper { protected void logExceptionAndStoreProgressMessage(ProcessContext context, Throwable t) { logException(context, t); storeExceptionInProgressMessageService(context, t); }  }
ProcessStepHelper { protected void logExceptionAndStoreProgressMessage(ProcessContext context, Throwable t) { logException(context, t); storeExceptionInProgressMessageService(context, t); }  void failStepIfProcessIsAborted(ProcessContext context); static boolean isProcessAborted(List<HistoricOperationEvent> historicOperationEvents); abstract ProgressMessageService getProgressMessageService(); abstract ProcessLogsPersister getProcessLogsPersister(); abstract StepLogger getStepLogger(); abstract ProcessEngineConfiguration getProcessEngineConfiguration(); abstract ProcessHelper getProcessHelper(); }
ProcessStepHelper { protected void logExceptionAndStoreProgressMessage(ProcessContext context, Throwable t) { logException(context, t); storeExceptionInProgressMessageService(context, t); }  void failStepIfProcessIsAborted(ProcessContext context); static boolean isProcessAborted(List<HistoricOperationEvent> historicOperationEvents); abstract ProgressMessageService getProgressMessageService(); abstract ProcessLogsPersister getProcessLogsPersister(); abstract StepLogger getStepLogger(); abstract ProcessEngineConfiguration getProcessEngineConfiguration(); abstract ProcessHelper getProcessHelper();  }