Skip to content

Commit

Permalink
refactor: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
donghoony committed Jan 7, 2025
1 parent ca874b9 commit 81244be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 81244be

Please sign in to comment.