abstract fun <T : B> defaultRequest(requestBuilder: RequestBuilder): T
Define default request properties that should be merged into all performed requests. In effect this provides a mechanism for defining common initialization for all requests such as the content type, request parameters, session attributes, and any other request property.
Properties specified at the time of performing a request override the default properties defined here.
requestBuilder - a RequestBuilder; see static factory methods in org.springframework.test.web.servlet.request.MockMvcRequestBuilders