-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WHD-295] Fix: from localdate.now to localdate.of
- Loading branch information
Showing
3 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,8 +68,8 @@ void setup() { | |
Member member2 = createMember("Member 2", "[email protected]", school); | ||
createItem(club, "Item 1", "photo1.png"); | ||
createItem(club, "Item 2", "photo2.png"); | ||
createClubMember(club, member1, MEMBER, LocalDate.now()); | ||
createClubMember(club, member2, MEMBER, LocalDate.now()); | ||
createClubMember(club, member1, MEMBER, LocalDate.of(2024, 7, 1)); | ||
createClubMember(club, member2, MEMBER, LocalDate.of(2024, 7, 1)); | ||
} | ||
|
||
@Test | ||
|
@@ -108,7 +108,7 @@ void getClubOperationPeriod() { | |
@DisplayName("동아리 별 동아리 결제 내역 확인") | ||
void getClubPayment() { | ||
// When | ||
ClubPaymentResponse response = adminClubService.getClubPaymentByTerm(club.getClubId(), getAssignedTerm(LocalDate.now())); | ||
ClubPaymentResponse response = adminClubService.getClubPaymentByTerm(club.getClubId(), getAssignedTerm(LocalDate.of(2024, 7, 1))); | ||
|
||
// Then | ||
assertThat(response.clubPayment()).isEqualTo(31000); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters