hgaol commented on issue #2397: api server exception management and code optimization (#397) URL: https://github.com/apache/incubator-dolphinscheduler/pull/2397#issuecomment-612346036 > good job, the code becomes more concise. I think you can refer the QueueControllerTest , about Exception Test , refer the following code: > try { > mockMvc.perform(post("/api/athlete").contentType(contentType). > content(TestUtil.convertObjectToJsonBytes(wAthleteFTP))) > .andExpect(status().isInternalServerError()) > .andExpect(content().string("...")) > .andDo(print()); > } catch (Exception e){ > //sink it > } > > I want to say I'm not very familar with MockMvc, you can contact me by mail( [[email protected]](mailto:[email protected]) ) or add my wechat(510570367), when added , please tell me your github id is hgaol OK, let me have a try. thank you!
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
