mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
This commit is contained in:
parent
af2666df79
commit
a480f6e2ee
@ -444,11 +444,12 @@ class WebFluxAutoConfigurationTests {
|
||||
|
||||
@Test
|
||||
void welcomePageHandlerMapping() {
|
||||
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);
|
||||
});
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
private Map<PathPattern, Object> getHandlerMap(ApplicationContext context) {
|
||||
|
Loading…
Reference in New Issue
Block a user