use of org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping in project spring-framework by spring-projects.
the class DelegatingWebFluxConfigurationIntegrationTests method requestMappingHandlerMappingWithPrimaryUsesQualifiedRequestedContentTypeResolver.
@Test
void requestMappingHandlerMappingWithPrimaryUsesQualifiedRequestedContentTypeResolver() {
load(registerPrimaryBean("testContentTypeResolver", RequestedContentTypeResolver.class));
RequestMappingHandlerMapping handlerMapping = this.context.getBean(RequestMappingHandlerMapping.class);
assertThat(handlerMapping.getContentTypeResolver()).isSameAs(this.context.getBean("webFluxContentTypeResolver"));
assertThat(this.context.getBeansOfType(RequestedContentTypeResolver.class)).containsOnlyKeys("webFluxContentTypeResolver", "testContentTypeResolver");
}
Aggregations