Uses of Interface
org.springframework.test.web.servlet.client.MockMvcWebTestClient.ControllerSpec
Package
Description
Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.-
Uses of MockMvcWebTestClient.ControllerSpec in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.asyncRequestTimeout
(long timeout) Specify the timeout value for async execution.MockMvcWebTestClient.bindToController
(Object... controllers) Begin creating aWebTestClient
by providing the@Controller
instance(s) to handle requests with.MockMvcWebTestClient.ControllerSpec.contentNegotiationManager
(org.springframework.web.accept.ContentNegotiationManager manager) Set a ContentNegotiationManager.MockMvcWebTestClient.ControllerSpec.controllerAdvice
(Object... controllerAdvice) RegisterControllerAdvice
MockMvcWebTestClient.ControllerSpec.conversionService
(org.springframework.format.support.FormattingConversionService conversionService) Provide a conversion service.MockMvcWebTestClient.ControllerSpec.customArgumentResolvers
(org.springframework.web.method.support.HandlerMethodArgumentResolver... argumentResolvers) Provide custom argument resolvers.MockMvcWebTestClient.ControllerSpec.customHandlerMapping
(Supplier<org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping> factory) Configure factory for a customRequestMappingHandlerMapping
.MockMvcWebTestClient.ControllerSpec.customReturnValueHandlers
(org.springframework.web.method.support.HandlerMethodReturnValueHandler... handlers) Provide custom return value handlers.MockMvcWebTestClient.ControllerSpec.flashMapManager
(org.springframework.web.servlet.FlashMapManager flashMapManager) Provide a custom FlashMapManager.MockMvcWebTestClient.ControllerSpec.handlerExceptionResolvers
(org.springframework.web.servlet.HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use.MockMvcWebTestClient.ControllerSpec.interceptors
(org.springframework.web.servlet.HandlerInterceptor... interceptors) Add global interceptors.MockMvcWebTestClient.ControllerSpec.localeResolver
(org.springframework.web.servlet.LocaleResolver localeResolver) Provide the LocaleResolver to use.MockMvcWebTestClient.ControllerSpec.mappedInterceptors
(String[] pathPatterns, org.springframework.web.servlet.HandlerInterceptor... interceptors) Add interceptors for specific patterns.MockMvcWebTestClient.ControllerSpec.messageConverters
(org.springframework.http.converter.HttpMessageConverter<?>... messageConverters) Set the message converters to use.MockMvcWebTestClient.ControllerSpec.patternParser
(org.springframework.web.util.pattern.PathPatternParser parser) Enable URL path matching with parsedPathPatterns
.MockMvcWebTestClient.ControllerSpec.placeholderValue
(String name, String value) Configure placeholder values to use.MockMvcWebTestClient.ControllerSpec.singleView
(org.springframework.web.servlet.View view) Set up a singleViewResolver
with a fixed view.MockMvcWebTestClient.ControllerSpec.useTrailingSlashPatternMatch
(boolean useTrailingSlashPatternMatch) Deprecated.MockMvcWebTestClient.ControllerSpec.validator
(org.springframework.validation.Validator validator) Provide a customValidator
.MockMvcWebTestClient.ControllerSpec.viewResolvers
(org.springframework.web.servlet.ViewResolver... resolvers) Set up view resolution.
PathPatternParser.setMatchOptionalTrailingSeparator(boolean)