void function ( ) { service = stub ( TaskSearchService . class ) ; mockMvc = MockMvcBuilders . standaloneSetup ( new TaskSearchController ( service ) ) . setMessageConverters ( objectMapperHttpMessageConverter ( ) ) . build ( ) ; }
you need to configure only the view resolver because it is the only component of the spring mvc infrastructure that is relevant for the test cases found from this test class . concode_field_sep String SECOND_TASK_TITLE concode_elem_sep Long FIRST_TASK_ID concode_elem_sep Long SECOND_TASK_ID concode_elem_sep String SEARCH_TERM concode_elem_sep String FIRST_TASK_TITLE concode_elem_sep TaskSearchService service concode_elem_sep MockMvc mockMvc concode_elem_sep String REQUEST_PARAMETER_SEARCH_TERM concode_elem_sep TaskListDTO first concode_elem_sep TaskListDTO second concode_field_sep void shouldReturnResultsAsJson concode_elem_sep void shouldReturnCorrectTasks concode_elem_sep void returnTwoTasks concode_elem_sep void shouldReturnListThatHasTwoTasks concode_elem_sep void shouldReturnHttpStatusCodeOk concode_elem_sep void returnEmptyList concode_elem_sep void shouldReturnEmptyTaskList concode_elem_sep TaskListDTO createTask