Spring asynch method integration test fails
问题 I created an integration test for asynchronous rest controller method. Which looks like: @Test public void shouldHandleRequestsAsynchronously() throws Exception { MvcResult mvcResult = this.mockMvc.perform(get("/api/reports/daily?startDate=2004-04-13&endDate=2005-04-13")) .andExpect(request().asyncStarted()) .andReturn(); this.mockMvc.perform(asyncDispatch(mvcResult)) .andExpect(status().isOk()) .andExpect(jsonPath("$[0].totalDistance", equalTo(100))) .andExpect(jsonPath("$[0].totalPrice",