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
(ContentNegotiationManager manager) Set a ContentNegotiationManager.MockMvcWebTestClient.ControllerSpec.controllerAdvice
(Object... controllerAdvice) RegisterControllerAdvice
MockMvcWebTestClient.ControllerSpec.conversionService
(FormattingConversionService conversionService) Provide a conversion service.MockMvcWebTestClient.ControllerSpec.customArgumentResolvers
(HandlerMethodArgumentResolver... argumentResolvers) Provide custom argument resolvers.MockMvcWebTestClient.ControllerSpec.customHandlerMapping
(Supplier<RequestMappingHandlerMapping> factory) Configure factory for a customRequestMappingHandlerMapping
.MockMvcWebTestClient.ControllerSpec.customReturnValueHandlers
(HandlerMethodReturnValueHandler... handlers) Provide custom return value handlers.MockMvcWebTestClient.ControllerSpec.flashMapManager
(FlashMapManager flashMapManager) Provide a custom FlashMapManager.MockMvcWebTestClient.ControllerSpec.handlerExceptionResolvers
(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use.MockMvcWebTestClient.ControllerSpec.interceptors
(HandlerInterceptor... interceptors) Add global interceptors.MockMvcWebTestClient.ControllerSpec.localeResolver
(LocaleResolver localeResolver) Provide the LocaleResolver to use.MockMvcWebTestClient.ControllerSpec.mappedInterceptors
(String[] pathPatterns, HandlerInterceptor... interceptors) Add interceptors for specific patterns.MockMvcWebTestClient.ControllerSpec.messageConverters
(HttpMessageConverter<?>... messageConverters) Set the message converters to use.MockMvcWebTestClient.ControllerSpec.patternParser
(PathPatternParser parser) Enable URL path matching with parsedPathPatterns
.MockMvcWebTestClient.ControllerSpec.placeholderValue
(String name, String value) Configure placeholder values to use.MockMvcWebTestClient.ControllerSpec.singleView
(View view) Set up a singleViewResolver
with a fixed view.MockMvcWebTestClient.ControllerSpec.useTrailingSlashPatternMatch
(boolean useTrailingSlashPatternMatch) Deprecated.Provide a customValidator
.MockMvcWebTestClient.ControllerSpec.viewResolvers
(ViewResolver... resolvers) Set up view resolution.
PathPatternParser.setMatchOptionalTrailingSeparator(boolean)