@@ -67,8 +67,8 @@ void setUp() {
6767 .andExpect (status ().isBadRequest ())
6868 .andExpect (jsonPath ("$.success" , equalTo (false )))
6969 .andExpect (jsonPath ("$.code" , equalTo (400 )))
70- .andExpect (jsonPath ("$.msg" , equalTo ("Custom Message: 메시지 " )))
71- .andExpect (jsonPath ("$.data" , equalTo (null )))
70+ .andExpect (jsonPath ("$.msg" , equalTo ("Custom Message" )))
71+ .andExpect (jsonPath ("$.data" , equalTo ("메시지" )))
7272 ;
7373 }
7474
@@ -79,8 +79,8 @@ void setUp() {
7979 .andExpect (status ().isNotFound ())
8080 .andExpect (jsonPath ("$.success" , equalTo (false )))
8181 .andExpect (jsonPath ("$.code" , equalTo (404 )))
82- .andExpect (jsonPath ("$.msg" , equalTo ("Not Found: No handler found for GET /asdf " )))
83- .andExpect (jsonPath ("$.data" , equalTo (null )))
82+ .andExpect (jsonPath ("$.msg" , equalTo ("Not Found" )))
83+ .andExpect (jsonPath ("$.data" , equalTo ("No handler found for GET /asdf" )))
8484 ;
8585 }
8686
@@ -91,8 +91,8 @@ void setUp() {
9191 .andExpect (status ().isBadRequest ())
9292 .andExpect (jsonPath ("$.success" , equalTo (false )))
9393 .andExpect (jsonPath ("$.code" , equalTo (400 )))
94- .andExpect (jsonPath ("$.msg" , equalTo ("Bad Request: Required String parameter 'param' is not present " )))
95- .andExpect (jsonPath ("$.data" , equalTo (null )))
94+ .andExpect (jsonPath ("$.msg" , equalTo ("Bad Request" )))
95+ .andExpect (jsonPath ("$.data" , equalTo ("Required String parameter 'param' is not present" )))
9696 ;
9797 }
9898
@@ -103,8 +103,8 @@ void setUp() {
103103 .andExpect (status ().isMethodNotAllowed ())
104104 .andExpect (jsonPath ("$.success" , equalTo (false )))
105105 .andExpect (jsonPath ("$.code" , equalTo (405 )))
106- .andExpect (jsonPath ("$.msg" , equalTo ("Method Not Allowed: Request method 'POST' not supported " )))
107- .andExpect (jsonPath ("$.data" , equalTo (null )))
106+ .andExpect (jsonPath ("$.msg" , equalTo ("Method Not Allowed" )))
107+ .andExpect (jsonPath ("$.data" , equalTo ("Request method 'POST' not supported" )))
108108 ;
109109 }
110110
@@ -124,8 +124,8 @@ void setUp() {
124124 .andExpect (status ().isInternalServerError ())
125125 .andExpect (jsonPath ("$.success" , equalTo (false )))
126126 .andExpect (jsonPath ("$.code" , equalTo (4000 )))
127- .andExpect (jsonPath ("$.msg" , equalTo ("지원하지 않는 상태코드: 메시지 " )))
128- .andExpect (jsonPath ("$.data" , equalTo (null )))
127+ .andExpect (jsonPath ("$.msg" , equalTo ("지원하지 않는 상태코드" )))
128+ .andExpect (jsonPath ("$.data" , equalTo ("메시지" )))
129129 ;
130130 }
131131
@@ -145,8 +145,8 @@ void setUp() {
145145 .andExpect (status ().isNotImplemented ())
146146 .andExpect (jsonPath ("$.success" , equalTo (false )))
147147 .andExpect (jsonPath ("$.code" , equalTo (501 )))
148- .andExpect (jsonPath ("$.msg" , equalTo ("Unhandled Exception: " + "메시지 " )))
149- .andExpect (jsonPath ("$.data" , equalTo (null )))
148+ .andExpect (jsonPath ("$.msg" , equalTo ("Unhandled Exception" )))
149+ .andExpect (jsonPath ("$.data" , equalTo ("메시지" )))
150150 ;
151151 }
152152
0 commit comments