Skip to content

Commit

Permalink
fix: 연도가 바뀌면서 실패하는 테스트 수정 (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyY00n authored Sep 9, 2024
1 parent 90ae9db commit 92e356b
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package zipgo.review.domain.repository;

import java.time.LocalDateTime;
import java.time.Year;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -28,13 +34,6 @@
import zipgo.review.domain.repository.dto.ReviewHelpfulReaction;
import zipgo.review.domain.type.AdverseReactionType;

import java.time.LocalDateTime;
import java.time.Year;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;

import static java.util.Collections.emptyList;
import static java.util.Collections.reverseOrder;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -427,7 +426,7 @@ class 리뷰목록_필터링 {
//given
PetFood 식품 = 식품_만들기();
랜덤_리뷰_생성(식품);
나이대_리뷰_생성(식품, 2023);
나이대_리뷰_생성(식품, Year.now().getValue());
//when
var 요청 = FindReviewsFilterRequest.builder()
Expand Down

0 comments on commit 92e356b

Please sign in to comment.