@Test public void notAcceptTest() { when(historyLevelDeterminator.determineHistoryLevel()).thenReturn(null); historyLevelAutoHandlingConfiguration.preInit(springProcessEngineConfiguration); verify(historyLevelDeterminator).determineHistoryLevel(); verify(springProcessEngineConfiguration, times(0)).setHistory(Mockito.anyString()); }
@Override public void preInit(SpringProcessEngineConfiguration configuration) { final String determineHistoryLevel = historyLevelDeterminator.determineHistoryLevel(); if (!StringUtils.isEmpty(determineHistoryLevel)) { configuration.setHistory(determineHistoryLevel); } }
DefaultHistoryLevelAutoHandlingConfiguration extends AbstractCamundaConfiguration implements CamundaHistoryLevelAutoHandlingConfiguration { @Override public void preInit(SpringProcessEngineConfiguration configuration) { final String determineHistoryLevel = historyLevelDeterminator.determineHistoryLevel(); if (!StringUtils.isEmpty(determineHistoryLevel)) { configuration.setHistory(determineHistoryLevel); } } }
DefaultHistoryLevelAutoHandlingConfiguration extends AbstractCamundaConfiguration implements CamundaHistoryLevelAutoHandlingConfiguration { @Override public void preInit(SpringProcessEngineConfiguration configuration) { final String determineHistoryLevel = historyLevelDeterminator.determineHistoryLevel(); if (!StringUtils.isEmpty(determineHistoryLevel)) { configuration.setHistory(determineHistoryLevel); } }  }
DefaultHistoryLevelAutoHandlingConfiguration extends AbstractCamundaConfiguration implements CamundaHistoryLevelAutoHandlingConfiguration { @Override public void preInit(SpringProcessEngineConfiguration configuration) { final String determineHistoryLevel = historyLevelDeterminator.determineHistoryLevel(); if (!StringUtils.isEmpty(determineHistoryLevel)) { configuration.setHistory(determineHistoryLevel); } }  @Override void preInit(SpringProcessEngineConfiguration configuration); }
DefaultHistoryLevelAutoHandlingConfiguration extends AbstractCamundaConfiguration implements CamundaHistoryLevelAutoHandlingConfiguration { @Override public void preInit(SpringProcessEngineConfiguration configuration) { final String determineHistoryLevel = historyLevelDeterminator.determineHistoryLevel(); if (!StringUtils.isEmpty(determineHistoryLevel)) { configuration.setHistory(determineHistoryLevel); } }  @Override void preInit(SpringProcessEngineConfiguration configuration);  }