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 15
15
public class UserNameRequest {
16
16
17
17
@ NotBlank (message = "이름은 공백일 수 없습니다." )
18
- @ Size (max = 6 , message = "이름 6자 이내" )
19
18
private String name ; // 이름
20
19
21
20
}
Original file line number Diff line number Diff line change @@ -462,8 +462,7 @@ void userInfoWhenInvalidAuthority() throws Exception {
462
462
@ Test
463
463
void 닉네임_중복체크_유효성_검증_실패_테스트2 () throws Exception {
464
464
// given
465
- String inValidName = "이름은6자이내" ;
466
- String expectedError = "name: 이름 6자 이내" ;
465
+ String inValidName = "엄청나게긴긴긴긴닉네임" ;
467
466
468
467
UserNameRequest request = UserFixture .generateUserNameRequest (inValidName );
469
468
@@ -475,8 +474,7 @@ void userInfoWhenInvalidAuthority() throws Exception {
475
474
.content (objectMapper .writeValueAsString (request )))
476
475
477
476
// then
478
- .andExpect (status ().isBadRequest ())
479
- .andExpect (jsonPath ("$.message" ).value (expectedError ));
477
+ .andExpect (status ().isOk ());
480
478
}
481
479
482
480
}
You can’t perform that action at this time.
0 commit comments