Skip to content

Commit

Permalink
[BE] 방 생성 검증 로직 주석 처리(#593) (#594)
Browse files Browse the repository at this point in the history
* refactor: 방 생성 검증 로직 주석 처리

* refactor: 운영 환경 설정 변경

* refactor: 방 생성 검증 로직 테스트 disabled 처리

---------

Co-authored-by: gyungchan Jo <[email protected]>
  • Loading branch information
github-actions[bot] and jcoding-play authored Oct 12, 2024
1 parent d99a468 commit 5f5466f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/main/java/corea/room/service/RoomService.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class RoomService {

@Transactional
public RoomResponse create(long memberId, RoomCreateRequest request) {
validateDeadLine(request.recruitmentDeadline(), request.reviewDeadline());
// validateDeadLine(request.recruitmentDeadline(), request.reviewDeadline());

Member manager = memberRepository.findById(memberId)
.orElseThrow(() -> new CoreaException(ExceptionType.MEMBER_NOT_FOUND));
Expand Down
2 changes: 1 addition & 1 deletion backend/src/main/resources/config
3 changes: 3 additions & 0 deletions backend/src/test/java/corea/room/service/RoomServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import corea.room.dto.RoomResponses;
import corea.room.repository.RoomRepository;
import org.assertj.core.api.InstanceOfAssertFactories;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -68,6 +69,7 @@ void create() {
assertThat(roomRepository.findAll()).hasSize(1);
}

@Disabled
@Test
@DisplayName("방을 생성할 때 모집 마감 시간은 현재 시간보다 1시간 이후가 아니라면 예외가 발생한다.")
void invalidRecruitmentDeadline() {
Expand All @@ -81,6 +83,7 @@ void invalidRecruitmentDeadline() {
.isEqualTo(ExceptionType.INVALID_RECRUITMENT_DEADLINE);
}

@Disabled
@Test
@DisplayName("방을 생성할 때 리뷰 마감 시간은 모집 마감 시간보다 1일 이후가 아니라면 예외가 발생한다.")
void invalidReviewDeadline() {
Expand Down

0 comments on commit 5f5466f

Please sign in to comment.