Skip to content

Commit

Permalink
refactor: Template 이외 Repository 삭제 준비
Browse files Browse the repository at this point in the history
  • Loading branch information
donghoony committed Jan 5, 2025
1 parent bd6fd91 commit a32b9cf
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 343 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package reviewme.fixture;

import java.util.List;
import reviewme.template.domain.OptionGroup;
import reviewme.template.domain.OptionItem;

public class OptionGroupFixture {

public static OptionGroup 선택지_그룹(long questionId) {
return new OptionGroup(questionId, 1, 2);
public static OptionGroup 선택지_그룹(List<OptionItem> optionItems) {
return new OptionGroup(optionItems, 1, optionItems.size());
}
}
15 changes: 0 additions & 15 deletions backend/src/test/java/reviewme/fixture/OptionItemFixture.java

This file was deleted.

18 changes: 10 additions & 8 deletions backend/src/test/java/reviewme/fixture/SectionFixture.java
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
package reviewme.fixture;

import java.util.List;
import reviewme.template.domain.OptionItem;
import reviewme.template.domain.Question;
import reviewme.template.domain.Section;
import reviewme.template.domain.VisibleType;

public class SectionFixture {

public static Section 항상_보이는_섹션(List<Long> questionIds) {
return 항상_보이는_섹션(questionIds, 1);
public static Section 항상_보이는_섹션(List<Question> questions) {
return 항상_보이는_섹션(questions, 1);
}

public static Section 항상_보이는_섹션(List<Long> questionIds, int position) {
return new Section(VisibleType.ALWAYS, questionIds, null, "섹션명", "머릿말", position);
public static Section 항상_보이는_섹션(List<Question> questions, int position) {
return new Section(VisibleType.ALWAYS, questions, null, "섹션명", "머릿말", position);
}

public static Section 조건부로_보이는_섹션(List<Long> questionIds, long onSelectedOptionId) {
return 조건부로_보이는_섹션(questionIds, onSelectedOptionId, 1);
public static Section 조건부로_보이는_섹션(List<Question> questions, OptionItem onSelectedOption) {
return 조건부로_보이는_섹션(questions, onSelectedOption, 1);
}

public static Section 조건부로_보이는_섹션(List<Long> questionIds, long onSelectedOptionId, int position) {
return new Section(VisibleType.CONDITIONAL, questionIds, onSelectedOptionId, "섹션명", "머릿말", position);
public static Section 조건부로_보이는_섹션(List<Question> questions, OptionItem onSelectedOption, int position) {
return new Section(VisibleType.CONDITIONAL, questions, onSelectedOption, "섹션명", "머릿말", position);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static org.assertj.core.api.Assertions.assertThatCode;
import static reviewme.fixture.OptionGroupFixture.선택지_그룹;
import static reviewme.fixture.OptionItemFixture.선택지;
import static reviewme.fixture.QuestionFixture.선택형_필수_질문;

import java.util.List;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a32b9cf

Please sign in to comment.