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

@ -444,11 +444,12 @@ class WebFluxAutoConfigurationTests {
@Test @Test
void welcomePageHandlerMapping() { void welcomePageHandlerMapping() {
this.contextRunner.withPropertyValues("spring.resources.static-locations=classpath:/welcome-page/").run((context) -> { this.contextRunner.withPropertyValues("spring.resources.static-locations=classpath:/welcome-page/")
assertThat(context).getBeans(RouterFunctionMapping.class).hasSize(2); .run((context) -> {
assertThat(context.getBean("welcomePageRouterFunctionMapping", HandlerMapping.class)).isNotNull() assertThat(context).getBeans(RouterFunctionMapping.class).hasSize(2);
.extracting("order").isEqualTo(1); assertThat(context.getBean("welcomePageRouterFunctionMapping", HandlerMapping.class)).isNotNull()
}); .extracting("order").isEqualTo(1);
});
} }
private Map<PathPattern, Object> getHandlerMap(ApplicationContext context) { private Map<PathPattern, Object> getHandlerMap(ApplicationContext context) {

Loading…
Cancel
Save