File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
main/java/com/example/backend/auth/api/controller/auth/request
test/java/com/example/backend/auth/api/controller/auth Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1515public class UserNameRequest {
1616
1717 @ NotBlank (message = "이름은 공백일 수 없습니다." )
18- @ Size (max = 6 , message = "이름 6자 이내" )
1918 private String name ; // 이름
2019
2120}
Original file line number Diff line number Diff line change @@ -462,8 +462,7 @@ void userInfoWhenInvalidAuthority() throws Exception {
462462 @ Test
463463 void 닉네임_중복체크_유효성_검증_실패_테스트2 () throws Exception {
464464 // given
465- String inValidName = "이름은6자이내" ;
466- String expectedError = "name: 이름 6자 이내" ;
465+ String inValidName = "엄청나게긴긴긴긴닉네임" ;
467466
468467 UserNameRequest request = UserFixture .generateUserNameRequest (inValidName );
469468
@@ -475,8 +474,7 @@ void userInfoWhenInvalidAuthority() throws Exception {
475474 .content (objectMapper .writeValueAsString (request )))
476475
477476 // then
478- .andExpect (status ().isBadRequest ())
479- .andExpect (jsonPath ("$.message" ).value (expectedError ));
477+ .andExpect (status ().isOk ());
480478 }
481479
482480}
You can’t perform that action at this time.
0 commit comments