# Uses of Class
org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder

Packages that use StandaloneMockMvcBuilder
Package
Description
org.springframework.test.web.servlet.assertj
AssertJ support for MockMvc.
org.springframework.test.web.servlet.setup
Contains built-in `MockMvcBuilder` implementations.

## Uses of StandaloneMockMvcBuilder in org.springframework.test.web.servlet.assertj

Method parameters in org.springframework.test.web.servlet.assertj with type arguments of type StandaloneMockMvcBuilder
Modifier and Type
Method
Description
`static MockMvcTester`
MockMvcTester.`of(Collection<?> controllers, Function<StandaloneMockMvcBuilder,MockMvc> customizations)`
Create an instance by registering one or more `@Controller` instances and configuring Spring MVC infrastructure programmatically.

## Uses of StandaloneMockMvcBuilder in org.springframework.test.web.servlet.setup

Methods in org.springframework.test.web.servlet.setup that return StandaloneMockMvcBuilder
Modifier and Type
Method
Description
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`addInterceptors(org.springframework.web.servlet.HandlerInterceptor... interceptors)`
Add interceptors mapped to all incoming requests.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`addMappedInterceptors(String[] pathPatterns, org.springframework.web.servlet.HandlerInterceptor... interceptors)`
Add interceptors mapped to a set of path patterns.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`addPlaceholderValue(String name, String value)`
In a standalone setup there is no support for placeholder values embedded in request mappings.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setAsyncRequestTimeout(long timeout)`
Specify the timeout value for async execution.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setContentNegotiationManager(org.springframework.web.accept.ContentNegotiationManager manager)`
Set a ContentNegotiationManager.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setControllerAdvice(Object... controllerAdvice)`
Register one or more `ControllerAdvice` instances to be used in tests (specified `Class` will be turned into instance).
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setConversionService(org.springframework.format.support.FormattingConversionService conversionService)`
Provide a conversion service with custom formatters and converters.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setCustomArgumentResolvers(org.springframework.web.method.support.HandlerMethodArgumentResolver... argumentResolvers)`
Provide custom resolvers for controller method arguments.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setCustomHandlerMapping(Supplier<org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping> factory)`
Configure factory to create a custom `RequestMappingHandlerMapping`.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setCustomReturnValueHandlers(org.springframework.web.method.support.HandlerMethodReturnValueHandler... handlers)`
Provide custom handlers for controller method return values.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setFlashMapManager(org.springframework.web.servlet.FlashMapManager flashMapManager)`
Provide a custom FlashMapManager instance.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)`
Set the HandlerExceptionResolver types to use as a list.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setHandlerExceptionResolvers(org.springframework.web.servlet.HandlerExceptionResolver... exceptionResolvers)`
Set the HandlerExceptionResolver types to use as an array.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setLocaleResolver(org.springframework.web.servlet.LocaleResolver localeResolver)`
Provide a LocaleResolver instance.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setMessageConverters(org.springframework.http.converter.HttpMessageConverter<?>... messageConverters)`
Set the message converters to use in argument resolvers and in return value handlers, which support reading and/or writing to the body of the request and response.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setPatternParser(org.springframework.web.util.pattern.PathPatternParser parser)`
Enable URL path matching with parsed `PathPatterns` instead of String pattern matching with a `PathMatcher`.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setRemoveSemicolonContent(boolean removeSemicolonContent)`
Set if ";" (semicolon) content should be stripped from the request URI.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setSingleView(org.springframework.web.servlet.View view)`
Sets up a single `ViewResolver` that always returns the provided view instance.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setUseSuffixPatternMatch(boolean useSuffixPatternMatch)`
Deprecated.
as of 5.2.4.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setUseTrailingSlashPatternMatch(boolean useTrailingSlashPatternMatch)`
Deprecated.
as of 6.0, see `PathPatternParser.setMatchOptionalTrailingSeparator(boolean)`
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setValidator(org.springframework.validation.Validator validator)`
Provide a custom `Validator` instead of the one created by default.
`StandaloneMockMvcBuilder`
StandaloneMockMvcBuilder.`setViewResolvers(org.springframework.web.servlet.ViewResolver... resolvers)`
Set up view resolution with the given `ViewResolvers`.
`static StandaloneMockMvcBuilder`
MockMvcBuilders.`standaloneSetup(Object... controllers)`
Build a `MockMvc` instance by registering one or more `@Controller` instances and configuring Spring MVC infrastructure programmatically.