From 81244be2f28f130e2ebac56ee928e402431e0ad5 Mon Sep 17 00:00:00 2001 From: donghoony Date: Wed, 8 Jan 2025 05:23:46 +0900 Subject: [PATCH] refactor: remove unused imports --- .../reviewme/review/service/ReviewSummaryServiceTest.java | 4 +--- .../test/java/reviewme/template/domain/SectionTest.java | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/backend/src/test/java/reviewme/review/service/ReviewSummaryServiceTest.java b/backend/src/test/java/reviewme/review/service/ReviewSummaryServiceTest.java index f324230cd..ce340f334 100644 --- a/backend/src/test/java/reviewme/review/service/ReviewSummaryServiceTest.java +++ b/backend/src/test/java/reviewme/review/service/ReviewSummaryServiceTest.java @@ -9,17 +9,15 @@ import java.util.List; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import reviewme.template.domain.Question; -import reviewme.template.repository.QuestionRepository; import reviewme.review.domain.Review; import reviewme.review.repository.ReviewRepository; import reviewme.review.service.dto.response.list.ReceivedReviewsSummaryResponse; import reviewme.reviewgroup.domain.ReviewGroup; import reviewme.reviewgroup.repository.ReviewGroupRepository; import reviewme.support.ServiceTest; +import reviewme.template.domain.Question; import reviewme.template.domain.Section; import reviewme.template.domain.Template; -import reviewme.template.repository.SectionRepository; import reviewme.template.repository.TemplateRepository; @ServiceTest diff --git a/backend/src/test/java/reviewme/template/domain/SectionTest.java b/backend/src/test/java/reviewme/template/domain/SectionTest.java index bfe1d553e..84db41a5b 100644 --- a/backend/src/test/java/reviewme/template/domain/SectionTest.java +++ b/backend/src/test/java/reviewme/template/domain/SectionTest.java @@ -1,13 +1,10 @@ package reviewme.template.domain; import static org.assertj.core.api.Assertions.assertThat; -import static reviewme.fixture.SectionFixture.조건부로_보이는_섹션; import static reviewme.fixture.SectionFixture.항상_보이는_섹션; import java.util.List; -import org.aspectj.util.Reflection; import org.junit.jupiter.api.Test; -import org.junit.platform.commons.support.ReflectionSupport; import org.springframework.test.util.ReflectionTestUtils; class SectionTest { @@ -18,7 +15,7 @@ class SectionTest { OptionItem optionItem = new OptionItem("content", 1, OptionType.CATEGORY); ReflectionTestUtils.setField(optionItem, "id", 1L); Question question = new Question(true, QuestionType.CHECKBOX, "question", null, 1); - Section section = new Section(VisibleType.CONDITIONAL, List.of(question), optionItem, "sectionName", "header", 1); + Section section = new Section(VisibleType.CONDITIONAL, List.of(question), optionItem, "name", "header", 1); // when, then assertThat(section.isVisibleBySelectedOptionIds(List.of(1L, 2L, 3L))).isTrue(); @@ -30,7 +27,7 @@ class SectionTest { OptionItem optionItem = new OptionItem("content", 1, OptionType.CATEGORY); ReflectionTestUtils.setField(optionItem, "id", 1L); Question question = new Question(true, QuestionType.CHECKBOX, "question", null, 1); - Section section = new Section(VisibleType.CONDITIONAL, List.of(question), optionItem, "sectionName", "header", 1); + Section section = new Section(VisibleType.CONDITIONAL, List.of(question), optionItem, "name", "header", 1); // when, then assertThat(section.isVisibleBySelectedOptionIds(List.of(2L))).isFalse();