Mastering Spring 5.0
上QQ阅读APP看书,第一时间看更新

Controller setup

The controller setup is very simple:

    this.mockMvc = MockMvcBuilders.standaloneSetup( 
new UserValidationController()).build();