WingtipsSpringBoot2WebfluxConfiguration { @Bean public WingtipsReactorInitializer reactorInitializer() { return new WingtipsReactorInitializer(wingtipsProperties.isReactorEnabled()); } @Autowired  WingtipsSpringBoot2WebfluxConfiguration(WingtipsSpringBoot2WebfluxProperties wingtipsProperties); @Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter(); @Bean WingtipsReactorInitializer reactorInitializer();  }
@DataProvider(value = { "true", "false" }) @Test public void reactorInitializer_returns_WingtipsReactorInitializer_with_expected_values( boolean reactorEnabled ) { WingtipsSpringBoot2WebfluxProperties props = generateProps( false, null, null, null, null, reactorEnabled ); WingtipsSpringBoot2WebfluxConfiguration conf = new WingtipsSpringBoot2WebfluxConfiguration(props); WingtipsReactorInitializer reactorInitializer = conf.reactorInitializer(); assertThat(reactorInitializer.isEnabled()).isEqualTo(reactorEnabled); }