Skip to content

Commit

Permalink
�test: 모임상세조회 및 모임전체조회 테스트 코드 작성 (#441)
Browse files Browse the repository at this point in the history
* test(getMeetingById): 모임 상세 조회 테스트 코드 작성

* test: stubbing 시간 변경 (잘 닫히는지보단 잘 열리는지 확인하기 위함)

* chore: id 삭제 및 '세미나' 데이터 추가

* fix: 비교식 '>' 가 아닌  '>=' 되도록 적용

* test: 모임 전체 조회 테스트 코드 작성

* fix: 모집전, 모집완료 상태 올바르게 쿼리하도록 수정
  • Loading branch information
mikekks authored Oct 9, 2024
1 parent 969e0b1 commit 00b17ca
Show file tree
Hide file tree
Showing 4 changed files with 617 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ private BooleanExpression eqStatus(List<String> statues, Time time) {
BooleanExpression condition = meeting.startDate.after(time.now());
conditions.add(condition);
} else if (status == EnMeetingStatus.APPLY_ABLE.getValue()) {
BooleanExpression afterStartDate = meeting.startDate.before(time.now());
BooleanExpression beforeEndDate = meeting.endDate.after(time.now());
BooleanExpression afterStartDate = meeting.startDate.loe(time.now());
BooleanExpression beforeEndDate = meeting.endDate.goe(time.now());
BooleanExpression condition = afterStartDate.and(beforeEndDate);
conditions.add(condition);
} else if (status == EnMeetingStatus.RECRUITMENT_COMPLETE.getValue()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
public class StubTime implements Time {
@Override
public LocalDateTime now() {
return LocalDateTime.of(2024, 4, 24, 23, 59);
return LocalDateTime.of(2024, 4, 24, 00, 00, 00, 000000000);
}
}
Loading

0 comments on commit 00b17ca

Please sign in to comment.