public static interface MockMvcWebTestClient.ControllerSpec extends MockMvcWebTestClient.MockMvcServerSpec<MockMvcWebTestClient.ControllerSpec>
MockMvc
to test one or more
controllers directly, and a simple facade around
StandaloneMockMvcBuilder
.alwaysExpect, apply, build, configureClient, defaultRequest, dispatcherServletCustomizer, dispatchOptions, filter, filters
MockMvcWebTestClient.ControllerSpec controllerAdvice(Object... controllerAdvice)
ControllerAdvice
This is delegated to
StandaloneMockMvcBuilder.setControllerAdvice(Object...)
.
MockMvcWebTestClient.ControllerSpec messageConverters(HttpMessageConverter<?>... messageConverters)
This is delegated to
StandaloneMockMvcBuilder.setMessageConverters(HttpMessageConverter[])
.
MockMvcWebTestClient.ControllerSpec validator(Validator validator)
Validator
.
This is delegated to
StandaloneMockMvcBuilder.setValidator(Validator)
.
MockMvcWebTestClient.ControllerSpec conversionService(FormattingConversionService conversionService)
This is delegated to
StandaloneMockMvcBuilder.setConversionService(FormattingConversionService)
.
MockMvcWebTestClient.ControllerSpec interceptors(HandlerInterceptor... interceptors)
This is delegated to
StandaloneMockMvcBuilder.addInterceptors(HandlerInterceptor...)
.
MockMvcWebTestClient.ControllerSpec mappedInterceptors(@Nullable String[] pathPatterns, HandlerInterceptor... interceptors)
This is delegated to
StandaloneMockMvcBuilder.addMappedInterceptors(String[], HandlerInterceptor...)
.
MockMvcWebTestClient.ControllerSpec contentNegotiationManager(ContentNegotiationManager manager)
This is delegated to
StandaloneMockMvcBuilder.setContentNegotiationManager(ContentNegotiationManager)
.
MockMvcWebTestClient.ControllerSpec asyncRequestTimeout(long timeout)
This is delegated to
StandaloneMockMvcBuilder.setAsyncRequestTimeout(long)
.
MockMvcWebTestClient.ControllerSpec customArgumentResolvers(HandlerMethodArgumentResolver... argumentResolvers)
This is delegated to
StandaloneMockMvcBuilder.setCustomArgumentResolvers(HandlerMethodArgumentResolver...)
.
MockMvcWebTestClient.ControllerSpec customReturnValueHandlers(HandlerMethodReturnValueHandler... handlers)
This is delegated to
StandaloneMockMvcBuilder.setCustomReturnValueHandlers(HandlerMethodReturnValueHandler...)
.
MockMvcWebTestClient.ControllerSpec handlerExceptionResolvers(HandlerExceptionResolver... exceptionResolvers)
This is delegated to
StandaloneMockMvcBuilder.setHandlerExceptionResolvers(HandlerExceptionResolver...)
.
MockMvcWebTestClient.ControllerSpec viewResolvers(ViewResolver... resolvers)
This is delegated to
StandaloneMockMvcBuilder.setViewResolvers(ViewResolver...)
.
MockMvcWebTestClient.ControllerSpec singleView(View view)
ViewResolver
with a fixed view.
This is delegated to
StandaloneMockMvcBuilder.setSingleView(View)
.
MockMvcWebTestClient.ControllerSpec localeResolver(LocaleResolver localeResolver)
This is delegated to
StandaloneMockMvcBuilder.setLocaleResolver(LocaleResolver)
.
MockMvcWebTestClient.ControllerSpec flashMapManager(FlashMapManager flashMapManager)
This is delegated to
StandaloneMockMvcBuilder.setFlashMapManager(FlashMapManager)
.
MockMvcWebTestClient.ControllerSpec patternParser(PathPatternParser parser)
PathPatterns
.
This is delegated to
StandaloneMockMvcBuilder.setPatternParser(PathPatternParser)
.
MockMvcWebTestClient.ControllerSpec useTrailingSlashPatternMatch(boolean useTrailingSlashPatternMatch)
This is delegated to
StandaloneMockMvcBuilder.setUseTrailingSlashPatternMatch(boolean)
.
MockMvcWebTestClient.ControllerSpec placeholderValue(String name, String value)
This is delegated to
StandaloneMockMvcBuilder.addPlaceholderValue(String, String)
.
MockMvcWebTestClient.ControllerSpec customHandlerMapping(Supplier<RequestMappingHandlerMapping> factory)
RequestMappingHandlerMapping
.
This is delegated to
StandaloneMockMvcBuilder.setCustomHandlerMapping(Supplier)
.