Skip to content

Commit

Permalink
[#59] test: 테스트시 LocalDate now 사용하지 않게 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
NaMinhyeok committed Feb 13, 2025
1 parent 5c9a8d9 commit b451d50
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ class shouldSubmitted {
option.getId(), balanceSurvey.getId(), member.getId(), "나는 행복한게 좋으니까");

// when
surveyService.submitSurvey(command, LocalDateTime.now());
LocalDateTime submittedAt = LocalDateTime.of(2025, 2, 13, 18, 0, 0);
surveyService.submitSurvey(command, submittedAt);
// then
List<SurveySubmission> submissions = surveySubmissionRepository.findAll();
then(submissions).hasSize(1);
Expand Down Expand Up @@ -671,7 +672,7 @@ void throwSurveyNotFoundException() {
SurveyOption.builder().survey(survey4).scores(scores).content("나와 같다.").build();

surveyOptionRepository.saveAll(List.of(option1, option2, option3, option4));
LocalDateTime submittedAt = LocalDateTime.now();
LocalDateTime submittedAt = LocalDateTime.of(2025, 2, 13, 18, 25, 0);

OnboardingSubmissionsCommand command =
new OnboardingSubmissionsCommand(
Expand Down

0 comments on commit b451d50

Please sign in to comment.