@@ -32,7 +32,7 @@ void setUp() {
3232 ResponseProperties responseProperties = getResponseProperties ();
3333
3434 mockMvc = MockMvcBuilders .standaloneSetup (new DemoApi ())
35- .addDispatcherServletCustomizer (dispatcherServlet -> dispatcherServlet .setThrowExceptionIfNoHandlerFound (true ))
35+ // .addDispatcherServletCustomizer(dispatcherServlet -> dispatcherServlet.setThrowExceptionIfNoHandlerFound(true))
3636 .setControllerAdvice (
3737 new ExceptionAdvice (responseProperties ),
3838 new ResponseAdvice (responseService , responseProperties ))
@@ -73,17 +73,17 @@ void setUp() {
7373 ;
7474 }
7575
76- @ Test
77- void 없는_api_test () throws Exception {
78- mockMvc .perform (get ("/asdf" ))
79- .andDo (print ())
80- .andExpect (status ().isNotFound ())
81- .andExpect (jsonPath ("$.success" , equalTo (false )))
82- .andExpect (jsonPath ("$.code" , equalTo (404 )))
83- .andExpect (jsonPath ("$.msg" , equalTo ("Not Found" )))
84- .andExpect (jsonPath ("$.data" , equalTo ("No handler found for GET /asdf" )))
85- ;
86- }
76+ // @Test
77+ // void 없는_api_test() throws Exception {
78+ // mockMvc.perform(get("/asdf"))
79+ // .andDo(print())
80+ // .andExpect(status().isNotFound())
81+ // .andExpect(jsonPath("$.success", equalTo(false)))
82+ // .andExpect(jsonPath("$.code", equalTo(404)))
83+ // .andExpect(jsonPath("$.msg", equalTo("Not Found")))
84+ // .andExpect(jsonPath("$.data", equalTo("No handler found for GET /asdf")))
85+ // ;
86+ // }
8787
8888 @ Test
8989 void 요청파라미터누락_test () throws Exception {
0 commit comments