Skip to content

Commit

Permalink
fix : 필드명 변경 (#519)
Browse files Browse the repository at this point in the history
Co-authored-by: bcc0830 <bcc0830@bithub.com>
  • Loading branch information
bcc0830 and bcc0830 authored Oct 7, 2022
1 parent e08be0e commit 20027d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
public class ChallengersResponse {

private Long memberId;
private String nickName;
private String nickname;
private Integer progressCount;
private String picture;
private String introduction;

public ChallengersResponse(Member member, Integer progressCount) {
this.memberId = member.getId();
this.nickName = member.getNickname();
this.nickname = member.getNickname();
this.progressCount = progressCount;
this.picture = member.getPicture();
this.introduction = member.getIntroduction();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void findAllChallengers() throws Exception {
preprocessResponse(prettyPrint()),
responseFields(
fieldWithPath("[].memberId").type(JsonFieldType.NUMBER).description("멤버 ID"),
fieldWithPath("[].nickName").type(JsonFieldType.STRING).description("멤버 닉네임"),
fieldWithPath("[].nickname").type(JsonFieldType.STRING).description("멤버 닉네임"),
fieldWithPath("[].progressCount").type(JsonFieldType.NUMBER).description("인증 횟수"),
fieldWithPath("[].picture").type(JsonFieldType.STRING).description("프로필 사진"),
fieldWithPath("[].introduction").type(JsonFieldType.STRING).description("자기 소개")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ void findAllChallenger() {
() -> assertThat(challengersResponse).hasSize(2),
() -> assertThat(challengersResponse.stream().map(ChallengersResponse::getMemberId))
.containsExactly(member1.getId(), member2.getId()),
() -> assertThat(challengersResponse.stream().map(ChallengersResponse::getNickName))
() -> assertThat(challengersResponse.stream().map(ChallengersResponse::getNickname))
.containsExactly(member1.getNickname(), member2.getNickname()),
() -> assertThat(challengersResponse.stream().map(ChallengersResponse::getProgressCount))
.containsExactly(0, 1),
Expand Down

0 comments on commit 20027d8

Please sign in to comment.