接口 MockMvcBuilder
- 所有已知子接口:
ConfigurableMockMvcBuilder<B>
public interface MockMvcBuilder
Builds a
MockMvc instance.
See static factory methods in
MockMvcBuilders.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
方法概要
修饰符和类型方法说明build()Build aMockMvcinstance.default ResultActionsperform(RequestBuilder requestBuilder) Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result.
-
方法详细资料
-
build
MockMvc build()Build aMockMvcinstance. -
perform
Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result.- 参数:
requestBuilder- used to prepare the request to execute; see static factory methods inMockMvcRequestBuilders- 返回:
- an instance of
ResultActions(nevernull) - 抛出:
Exception- 另请参阅:
-