Skip to content

Commit

Permalink
[FIX] 메소드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Jan 30, 2024
1 parent db8a8e6 commit 2596051
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class DiaryControllerTest extends BaseControllerTest {
void success_create_diary() throws Exception {
// given
DiaryRequestDTO request = new DiaryRequestDTO("Hello SMEEM!", 1L);
CreatedDiaryResponseDTO response = new CreatedDiaryResponseDTO(1L, badges());
CreatedDiaryResponseDTO response = new CreatedDiaryResponseDTO(1L, acquiredBadges());
ResponseEntity<ApiResponse> result = ResponseEntity
.created(URI.create("localhost:8080/api/v2/diaries/1"))
.body(success("일기 작성 성공", response));
Expand Down Expand Up @@ -269,7 +269,7 @@ void success_get_diaries() throws Exception {
.andExpect(status().isOk());
}

private List<AcquiredBadgeResponseDTO> badges() { // acquiredBadge
private List<AcquiredBadgeResponseDTO> acquiredBadges() {
return Stream.iterate(1, i -> i + 1).limit(5)
.map(i -> acquiredBadge()).toList();
}
Expand Down

0 comments on commit 2596051

Please sign in to comment.