Skip to content

Commit

Permalink
feat: 바뀐 조회 로직 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
k000927 committed Aug 23, 2024
1 parent b823e65 commit 25cba11
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void setUp() throws Exception {
this.lotteryEventParticipantsListResponseDto = new ParticipantsListResponseDto<>(participants, true, 1);

// 추첨 이벤트 상세 응답 DTO
lotteryEventDetailResponseDto = LotteryEventResponseDto.withDetail(lotteryEvent);
lotteryEventDetailResponseDto = LotteryEventResponseDto.withDetail(lotteryEvent, 1L);

// 캐스퍼 봇
casperBotRequestDto = CasperBotRequestDto.builder()
Expand Down Expand Up @@ -321,7 +321,7 @@ void postImageSuccessTest() throws Exception {
@DisplayName("추첨 이벤트 조회 성공 테스트")
void getLotteryEventSuccessTest() throws Exception {
//given
given(adminService.getLotteryEvent()).willReturn(LotteryEventResponseDto.withDetail(lotteryEvent));
given(adminService.getLotteryEvent()).willReturn(LotteryEventResponseDto.withDetail(lotteryEvent, 1L));

//when
ResultActions perform = mockMvc.perform(get("/admin/event/lottery").header("Authorization", accessToken).contentType(APPLICATION_JSON));
Expand All @@ -332,7 +332,7 @@ void getLotteryEventSuccessTest() throws Exception {
.andExpect(jsonPath("$.startTime").value("00:00:00"))
.andExpect(jsonPath("$.endDate").value("2100-09-27"))
.andExpect(jsonPath("$.endTime").value("00:00:00"))
.andExpect(jsonPath("$.appliedCount").value(0))
.andExpect(jsonPath("$.appliedCount").value(1L))
.andExpect(jsonPath("$.winnerCount").value(315))
.andExpect(jsonPath("$.status").value("DURING"))
.andDo(print());
Expand Down Expand Up @@ -619,7 +619,7 @@ void updateLotteryEventSuccessTest() throws Exception {
.andExpect(jsonPath("$.startTime").value("00:00:00"))
.andExpect(jsonPath("$.endDate").value("2100-09-27"))
.andExpect(jsonPath("$.endTime").value("00:00:00"))
.andExpect(jsonPath("$.appliedCount").value(0))
.andExpect(jsonPath("$.appliedCount").value(1L))
.andExpect(jsonPath("$.winnerCount").value(315))
.andExpect(jsonPath("$.status").value("DURING"))
.andDo(print());
Expand Down

0 comments on commit 25cba11

Please sign in to comment.