build a mockmvc instance by registering one or more @controller instances and configuring spring mvc infrastructureprogrammatically . this allows full control over the instantiation and initialization of controllers and their dependencies , similar to plain unit tests while also making it possible to test one controller at a time . when this builder is used , the minimum infrastructure required by the org.springframework.web.servlet.dispatcherservlet dispatcherservlet to serve requests with annotated controllers is created automatically and can be customized , resulting in configuration that is equivalent to what mvc java configuration provides except using builder-style methods . if the spring mvc configuration of an application is relatively straight-forward -- for example , when using the mvc namespace in xml or mvc java config -- then using this builder might be a good option for testing a majority of controllers . in such cases , a much smaller number of tests can be used to focus on testing and verifying the actual spring mvc configuration . concode_field_sep PlaceHolder placeHolder concode_field_sep DefaultMockMvcBuilder webAppContextSetup
StandaloneMockMvcBuilder function ( Object ... arg0 ) { return new StandaloneMockMvcBuilder ( arg0 ) ; }