Skip to content

Commit

Permalink
Merge pull request #622 from DKU-Dgaja/621-be-refactor-닉네임-글자-제한-수정
Browse files Browse the repository at this point in the history
[BE] refactor(#621): 닉네임 글자 제한 수정
  • Loading branch information
jusung-c authored Sep 13, 2024
2 parents 5ca66bf + d9537de commit ba774db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
public class UserNameRequest {

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,7 @@ void userInfoWhenInvalidAuthority() throws Exception {
@Test
void 닉네임_중복체크_유효성_검증_실패_테스트2() throws Exception {
// given
String inValidName = "이름은6자이내";
String expectedError = "name: 이름 6자 이내";
String inValidName = "엄청나게긴긴긴긴닉네임";

UserNameRequest request = UserFixture.generateUserNameRequest(inValidName);

Expand All @@ -475,8 +474,7 @@ void userInfoWhenInvalidAuthority() throws Exception {
.content(objectMapper.writeValueAsString(request)))

// then
.andExpect(status().isBadRequest())
.andExpect(jsonPath("$.message").value(expectedError));
.andExpect(status().isOk());
}

}

0 comments on commit ba774db

Please sign in to comment.