@Test public void fail_if_not_configured_onInit() throws Exception { thrown.expect(IllegalStateException.class); CamundaBpmProperties camundaBpmProperties = new CamundaBpmProperties(); final CreateFilterConfiguration configuration = new CreateFilterConfiguration(); ReflectionTestUtils.setField(configuration, "camundaBpmProperties", camundaBpmProperties); configuration.init(); }
@PostConstruct public void init() { filterName = Optional.ofNullable(camundaBpmProperties.getFilter()) .map(FilterProperty::getCreate) .orElseThrow(fail("filter.create not configured!")); }
CreateFilterConfiguration extends AbstractCamundaConfiguration { @PostConstruct public void init() { filterName = Optional.ofNullable(camundaBpmProperties.getFilter()) .map(FilterProperty::getCreate) .orElseThrow(fail("filter.create not configured!")); } }
CreateFilterConfiguration extends AbstractCamundaConfiguration { @PostConstruct public void init() { filterName = Optional.ofNullable(camundaBpmProperties.getFilter()) .map(FilterProperty::getCreate) .orElseThrow(fail("filter.create not configured!")); }  }
CreateFilterConfiguration extends AbstractCamundaConfiguration { @PostConstruct public void init() { filterName = Optional.ofNullable(camundaBpmProperties.getFilter()) .map(FilterProperty::getCreate) .orElseThrow(fail("filter.create not configured!")); }  @PostConstruct void init(); @Override void postProcessEngineBuild(final ProcessEngine processEngine); @Override String toString(); }
CreateFilterConfiguration extends AbstractCamundaConfiguration { @PostConstruct public void init() { filterName = Optional.ofNullable(camundaBpmProperties.getFilter()) .map(FilterProperty::getCreate) .orElseThrow(fail("filter.create not configured!")); }  @PostConstruct void init(); @Override void postProcessEngineBuild(final ProcessEngine processEngine); @Override String toString();  }