@Test public void setDefaultNumberOfRetries() { properties.setDefaultNumberOfRetries(null); instance.preInit(configuration); assertThat(configuration.getDefaultNumberOfRetries()).isEqualTo(3); properties.setDefaultNumberOfRetries(1); instance.preInit(configuration); assertThat(configuration.getDefaultNumberOfRetries()).isEqualTo(1); }
private void setDefaultNumberOfRetries(SpringProcessEngineConfiguration configuration) { Optional.ofNullable(camundaBpmProperties.getDefaultNumberOfRetries()) .ifPresent(configuration::setDefaultNumberOfRetries); }
DefaultProcessEngineConfiguration extends AbstractCamundaConfiguration implements CamundaProcessEngineConfiguration { private void setDefaultNumberOfRetries(SpringProcessEngineConfiguration configuration) { Optional.ofNullable(camundaBpmProperties.getDefaultNumberOfRetries()) .ifPresent(configuration::setDefaultNumberOfRetries); } }
DefaultProcessEngineConfiguration extends AbstractCamundaConfiguration implements CamundaProcessEngineConfiguration { private void setDefaultNumberOfRetries(SpringProcessEngineConfiguration configuration) { Optional.ofNullable(camundaBpmProperties.getDefaultNumberOfRetries()) .ifPresent(configuration::setDefaultNumberOfRetries); }  }
DefaultProcessEngineConfiguration extends AbstractCamundaConfiguration implements CamundaProcessEngineConfiguration { private void setDefaultNumberOfRetries(SpringProcessEngineConfiguration configuration) { Optional.ofNullable(camundaBpmProperties.getDefaultNumberOfRetries()) .ifPresent(configuration::setDefaultNumberOfRetries); }  @Override void preInit(SpringProcessEngineConfiguration configuration); }
DefaultProcessEngineConfiguration extends AbstractCamundaConfiguration implements CamundaProcessEngineConfiguration { private void setDefaultNumberOfRetries(SpringProcessEngineConfiguration configuration) { Optional.ofNullable(camundaBpmProperties.getDefaultNumberOfRetries()) .ifPresent(configuration::setDefaultNumberOfRetries); }  @Override void preInit(SpringProcessEngineConfiguration configuration);  }