Skip to content

Commit

Permalink
test: 사용하지 않는 테스트 삭제
Browse files Browse the repository at this point in the history
- 세션과 권한의 책임으로 바뀌었으므로 삭제한다.
  • Loading branch information
nayonsoso committed Feb 12, 2025
1 parent ab0110b commit 1d121cf
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package reviewme.review.service;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.junit.jupiter.api.Assertions.assertAll;
import static reviewme.fixture.OptionGroupFixture.선택지_그룹;
import static reviewme.fixture.OptionItemFixture.선택지;
Expand All @@ -24,7 +23,6 @@
import reviewme.review.service.dto.response.detail.QuestionAnswerResponse;
import reviewme.review.service.dto.response.detail.ReviewDetailResponse;
import reviewme.review.service.dto.response.detail.SectionAnswerResponse;
import reviewme.review.service.exception.ReviewNotFoundByIdAndGroupException;
import reviewme.reviewgroup.domain.ReviewGroup;
import reviewme.reviewgroup.repository.ReviewGroupRepository;
import reviewme.support.ServiceTest;
Expand All @@ -51,24 +49,6 @@ class ReviewDetailLookupServiceTest {
@Autowired
private TemplateRepository templateRepository;

@Test
void 리뷰_그룹에_해당하지_않는_리뷰를_조회할_경우_예외가_발생한다() {
// given
ReviewGroup reviewGroup1 = reviewGroupRepository.save(리뷰_그룹());
ReviewGroup reviewGroup2 = reviewGroupRepository.save(리뷰_그룹());

Review review1 = reviewRepository.save(비회원_작성_리뷰(0, reviewGroup1.getId(), List.of()));
Review review2 = reviewRepository.save(비회원_작성_리뷰(0, reviewGroup2.getId(), List.of()));

// when, then
assertAll(
() -> assertThatThrownBy(() -> reviewDetailLookupService.getReviewDetail(review2.getId()))
.isInstanceOf(ReviewNotFoundByIdAndGroupException.class),
() -> assertThatThrownBy(() -> reviewDetailLookupService.getReviewDetail(review1.getId()))
.isInstanceOf(ReviewNotFoundByIdAndGroupException.class)
);
}

@Test
void 사용자가_작성한_리뷰를_확인한다() {
// given - 리뷰 그룹 저장
Expand Down

0 comments on commit 1d121cf

Please sign in to comment.