Skip to content

Commit

Permalink
Merge pull request #139 from FreakPeople/refactor/#138
Browse files Browse the repository at this point in the history
refactor: 통합 테스트의 기간 의존성 제거
  • Loading branch information
youjungHwang authored Jul 17, 2024
2 parents 00d629f + aff732f commit a78c938
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class PolicyRegisterTests {

private static final String COOKIE_POLICY_NAME = "COOKIE_POLICY";
private static final String BAD_WORDS_POLICY_NAME = "BAD_WORDS_POLICY";
private static final LocalDateTime START_DATE = LocalDateTime.parse("2024-05-02T00:00");
private static final LocalDateTime END_DATE = LocalDateTime.parse("2024-12-31T23:59:59");
private static final LocalDateTime START_DATE = LocalDateTime.now().minusDays(1);
private static final LocalDateTime END_DATE = LocalDateTime.now().plusMonths(12);
private static final BigDecimal COOKIE_PRICE = BigDecimal.valueOf(200);
private static final int COOKIE_QUANTITY_PER_EPISODE = 3;
private static final int WARNING_THRESHOLD = 3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class RegisterPromotionTests {
private static final BigDecimal DISCOUNT_RATE = null;
private static final Integer DISCOUNT_QUANTITY = 1;
private static final Boolean IS_DISCOUNT_DUPLICATABLE = true;
private static final LocalDateTime STARTDATE = LocalDateTime.of(2024, 5, 13, 13, 50, 0);
private static final LocalDateTime ENDDATE = LocalDateTime.of(2024, 8, 15, 11, 59, 59);
private static final LocalDateTime STARTDATE = LocalDateTime.now().plusDays(1);
private static final LocalDateTime ENDDATE = LocalDateTime.now().plusDays(30);
private static final List<PromotionAttributeCreateRequest> PROMOTION_ATTRIBUTES = List.of(
new PromotionAttributeCreateRequest("target-month", "7"),
new PromotionAttributeCreateRequest("target-genre", "thriller")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class PromotionEntityTest {
private static final BigDecimal DISCOUNT_RATE = null;
private static final Integer DISCOUNT_QUANTITY = 1;
private static final Boolean IS_DISCOUNT_DUPLICATABLE = true;
private static final LocalDateTime STARTDATE = LocalDateTime.of(2024, 7, 15, 0, 0, 0);
private static final LocalDateTime ENDDATE = LocalDateTime.of(2024, 8, 15, 11, 59, 59);
private static final LocalDateTime STARTDATE = LocalDateTime.now().plusDays(1);
private static final LocalDateTime ENDDATE = LocalDateTime.now().plusDays(30);

@Test
@DisplayName("[create() 테스트] : 프로모션 엔티티 생성 테스트")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class PromotionRegisterTests {
private static final BigDecimal DISCOUNT_RATE = null;
private static final Integer DISCOUNT_QUANTITY = 1;
private static final Boolean IS_DISCOUNT_DUPLICATABLE = true;
private static final LocalDateTime STARTDATE = LocalDateTime.of(2024, 7, 15, 0, 0, 0);
private static final LocalDateTime ENDDATE = LocalDateTime.of(2024, 8, 15, 11, 59, 59);
private static final LocalDateTime STARTDATE = LocalDateTime.now().plusDays(1);
private static final LocalDateTime ENDDATE = LocalDateTime.now().plusDays(30);
private static final List<PromotionAttributeCreateRequest> PROMOTION_ATTRIBUTES = List.of(
new PromotionAttributeCreateRequest("target-month", "7"),
new PromotionAttributeCreateRequest("target-genre", "thriller")
Expand Down

0 comments on commit a78c938

Please sign in to comment.