-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Template 이외 Repository 삭제 준비
- Loading branch information
Showing
8 changed files
with
14 additions
and
343 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
backend/src/test/java/reviewme/fixture/OptionGroupFixture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
15
backend/src/test/java/reviewme/fixture/OptionItemFixture.java
This file was deleted.
Oops, something went wrong.
18 changes: 10 additions & 8 deletions
18
backend/src/test/java/reviewme/fixture/SectionFixture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
backend/src/test/java/reviewme/template/repository/OptionGroupRepositoryTest.java
This file was deleted.
Oops, something went wrong.
70 changes: 0 additions & 70 deletions
70
backend/src/test/java/reviewme/template/repository/OptionItemRepositoryTest.java
This file was deleted.
Oops, something went wrong.
138 changes: 0 additions & 138 deletions
138
backend/src/test/java/reviewme/template/repository/QuestionRepositoryTest.java
This file was deleted.
Oops, something went wrong.
62 changes: 0 additions & 62 deletions
62
backend/src/test/java/reviewme/template/repository/SectionRepositoryTest.java
This file was deleted.
Oops, something went wrong.