pull/22035/head
Brian Clozel 4 years ago
parent af2666df79
commit a480f6e2ee

@ -444,7 +444,8 @@ class WebFluxAutoConfigurationTests {
@Test
void welcomePageHandlerMapping() {
this.contextRunner.withPropertyValues("spring.resources.static-locations=classpath:/welcome-page/").run((context) -> {
this.contextRunner.withPropertyValues("spring.resources.static-locations=classpath:/welcome-page/")
.run((context) -> {
assertThat(context).getBeans(RouterFunctionMapping.class).hasSize(2);
assertThat(context.getBean("welcomePageRouterFunctionMapping", HandlerMapping.class)).isNotNull()
.extracting("order").isEqualTo(1);

Loading…
Cancel
Save