@Test public void testRetryableEvents() { HelloWorldFlowConfig helloWorldFlowConfig = new HelloWorldFlowConfig(); TestFlowConfig testFlowConfig = new TestFlowConfig(); List<RetryableFlowConfiguration<?>> retryableFlowConfigurations = List.of(helloWorldFlowConfig, testFlowConfig); Set<String> retryableEvents = underTest.retryableEvents(retryableFlowConfigurations); Set<String> expected = Set.of(helloWorldFlowConfig.getRetryableEvent().event(), testFlowConfig.getRetryableEvent().event()); assertEquals(expected, retryableEvents); }
@Bean public Set<String> retryableEvents(List<RetryableFlowConfiguration<?>> retryableFlowConfigurations) { return retryableFlowConfigurations.stream() .map(RetryableFlowConfiguration::getRetryableEvent) .map(FlowEvent::event) .collect(Collectors.toSet()); }
Flow2Config { @Bean public Set<String> retryableEvents(List<RetryableFlowConfiguration<?>> retryableFlowConfigurations) { return retryableFlowConfigurations.stream() .map(RetryableFlowConfiguration::getRetryableEvent) .map(FlowEvent::event) .collect(Collectors.toSet()); } }
Flow2Config { @Bean public Set<String> retryableEvents(List<RetryableFlowConfiguration<?>> retryableFlowConfigurations) { return retryableFlowConfigurations.stream() .map(RetryableFlowConfiguration::getRetryableEvent) .map(FlowEvent::event) .collect(Collectors.toSet()); }  }
Flow2Config { @Bean public Set<String> retryableEvents(List<RetryableFlowConfiguration<?>> retryableFlowConfigurations) { return retryableFlowConfigurations.stream() .map(RetryableFlowConfiguration::getRetryableEvent) .map(FlowEvent::event) .collect(Collectors.toSet()); }  @Bean Map<String, FlowConfiguration<?>> flowConfigurationMap(List<FlowConfiguration<?>> flowConfigs); @Bean Set<String> retryableEvents(List<RetryableFlowConfiguration<?>> retryableFlowConfigurations); @Bean Set<String> failHandledEvents(List<AbstractFlowConfiguration<?, ?>> flowConfigurations); }
Flow2Config { @Bean public Set<String> retryableEvents(List<RetryableFlowConfiguration<?>> retryableFlowConfigurations) { return retryableFlowConfigurations.stream() .map(RetryableFlowConfiguration::getRetryableEvent) .map(FlowEvent::event) .collect(Collectors.toSet()); }  @Bean Map<String, FlowConfiguration<?>> flowConfigurationMap(List<FlowConfiguration<?>> flowConfigs); @Bean Set<String> retryableEvents(List<RetryableFlowConfiguration<?>> retryableFlowConfigurations); @Bean Set<String> failHandledEvents(List<AbstractFlowConfiguration<?, ?>> flowConfigurations);  }