@Test public void noHistoryEventHandlerTest() { defaultHistoryConfiguration.preInit(springProcessEngineConfiguration); verify(springProcessEngineConfiguration, times(0)).setHistoryEventHandler(Mockito.any(HistoryEventHandler.class)); }
@Override public void preInit(SpringProcessEngineConfiguration configuration) { String historyLevel = camundaBpmProperties.getHistoryLevel(); if (historyLevel != null) { configuration.setHistory(historyLevel); } if (historyEventHandler != null) { logger.debug("registered history event handler: {}", historyEventHandler.getClass()); configuration.getCustomHistoryEventHandlers().add(historyEventHandler); } }
DefaultHistoryConfiguration extends AbstractCamundaConfiguration implements CamundaHistoryConfiguration { @Override public void preInit(SpringProcessEngineConfiguration configuration) { String historyLevel = camundaBpmProperties.getHistoryLevel(); if (historyLevel != null) { configuration.setHistory(historyLevel); } if (historyEventHandler != null) { logger.debug("registered history event handler: {}", historyEventHandler.getClass()); configuration.getCustomHistoryEventHandlers().add(historyEventHandler); } } }
DefaultHistoryConfiguration extends AbstractCamundaConfiguration implements CamundaHistoryConfiguration { @Override public void preInit(SpringProcessEngineConfiguration configuration) { String historyLevel = camundaBpmProperties.getHistoryLevel(); if (historyLevel != null) { configuration.setHistory(historyLevel); } if (historyEventHandler != null) { logger.debug("registered history event handler: {}", historyEventHandler.getClass()); configuration.getCustomHistoryEventHandlers().add(historyEventHandler); } }  }
DefaultHistoryConfiguration extends AbstractCamundaConfiguration implements CamundaHistoryConfiguration { @Override public void preInit(SpringProcessEngineConfiguration configuration) { String historyLevel = camundaBpmProperties.getHistoryLevel(); if (historyLevel != null) { configuration.setHistory(historyLevel); } if (historyEventHandler != null) { logger.debug("registered history event handler: {}", historyEventHandler.getClass()); configuration.getCustomHistoryEventHandlers().add(historyEventHandler); } }  @Override void preInit(SpringProcessEngineConfiguration configuration); }
DefaultHistoryConfiguration extends AbstractCamundaConfiguration implements CamundaHistoryConfiguration { @Override public void preInit(SpringProcessEngineConfiguration configuration) { String historyLevel = camundaBpmProperties.getHistoryLevel(); if (historyLevel != null) { configuration.setHistory(historyLevel); } if (historyEventHandler != null) { logger.debug("registered history event handler: {}", historyEventHandler.getClass()); configuration.getCustomHistoryEventHandlers().add(historyEventHandler); } }  @Override void preInit(SpringProcessEngineConfiguration configuration);  }