- Mastering Spring 5.0
- Ranga Rao Karanam
- 27字
- 2021-07-02 22:12:12
Setting up the Controller to test
This step is very similar to the previous flow. We instantiate Mock MVC with BasicModelMapController:
this.mockMvc = MockMvcBuilders.standaloneSetup
(new BasicModelMapController())
.setViewResolvers(viewResolver()).build();