Skip to content

Commit ba774db

Browse files
authored
Merge pull request #622 from DKU-Dgaja/621-be-refactor-닉네임-글자-제한-수정
[BE] refactor(#621): 닉네임 글자 제한 수정
2 parents 5ca66bf + d9537de commit ba774db

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

backend/src/main/java/com/example/backend/auth/api/controller/auth/request/UserNameRequest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
public class UserNameRequest {
1616

1717
@NotBlank(message = "이름은 공백일 수 없습니다.")
18-
@Size(max = 6, message = "이름 6자 이내")
1918
private String name; // 이름
2019

2120
}

backend/src/test/java/com/example/backend/auth/api/controller/auth/AuthControllerTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)