WingtipsSpringBoot2WebfluxConfiguration { protected @Nullable List<String> extractUserIdHeaderKeysAsList(WingtipsSpringBoot2WebfluxProperties props) { if (props.getUserIdHeaderKeys() == null) { return null; } return Stream .of(props.getUserIdHeaderKeys().split(",")) .filter(StringUtils::isNotBlank) .map(String::trim) .collect(Collectors.toList()); } @Autowired  WingtipsSpringBoot2WebfluxConfiguration(WingtipsSpringBoot2WebfluxProperties wingtipsProperties); @Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter(); @Bean WingtipsReactorInitializer reactorInitializer();  }
@UseDataProvider("extractUserIdHeaderKeysScenarioDataProvider") @Test public void extractUserIdHeaderKeysAsList_works_as_expected( ExtractUserIdHeaderKeysScenario scenario ) { WingtipsSpringBoot2WebfluxProperties props = generateProps( false, scenario.userIdHeaderKeysString, null, null, null, false ); WingtipsSpringBoot2WebfluxConfiguration conf = new WingtipsSpringBoot2WebfluxConfiguration(props); List<String> result = conf.extractUserIdHeaderKeysAsList(props); assertThat(result).isEqualTo(scenario.expectedResult); }