@@ -303,7 +303,7 @@ public void createGroup() throws Exception {
303303 mvc .perform (post ("/cms/admin/group/" )
304304 .contentType (MediaType .APPLICATION_JSON ).content (content ))
305305 .andDo (print ())
306- .andExpect (status ().isOk ())
306+ .andExpect (status ().isCreated ())
307307 .andExpect (MockMvcResultMatchers .jsonPath ("$.message" ).value ("新建分组成功" ));
308308 }
309309
@@ -384,7 +384,7 @@ public void dispatchPermission() throws Exception {
384384 mvc .perform (post ("/cms/admin/permission/dispatch" )
385385 .contentType (MediaType .APPLICATION_JSON ).content (content ))
386386 .andDo (print ())
387- .andExpect (status ().isOk ())
387+ .andExpect (status ().isCreated ())
388388 .andExpect (MockMvcResultMatchers .jsonPath ("$.message" ).value ("添加权限成功" ));
389389 }
390390
@@ -414,7 +414,7 @@ public void dispatchPermissions() throws Exception {
414414 mvc .perform (post ("/cms/admin/permission/dispatch/batch" )
415415 .contentType (MediaType .APPLICATION_JSON ).content (content ))
416416 .andDo (print ())
417- .andExpect (status ().isOk ())
417+ .andExpect (status ().isCreated ())
418418 .andExpect (MockMvcResultMatchers .jsonPath ("$.message" ).value ("添加权限成功" ));
419419 }
420420
@@ -447,7 +447,7 @@ public void removePermissions() throws Exception {
447447 mvc .perform (post ("/cms/admin/permission/remove" )
448448 .contentType (MediaType .APPLICATION_JSON ).content (content ))
449449 .andDo (print ())
450- .andExpect (status ().isOk ())
450+ .andExpect (status ().isCreated ())
451451 .andExpect (MockMvcResultMatchers .jsonPath ("$.message" ).value ("删除权限成功" ));
452452 }
453453}
0 commit comments