Skip to content

Commit

Permalink
test: 질문 조회 파라미터 변수로 선언 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
623nana committed Aug 6, 2021
1 parent 2fc3ddb commit 30c0846
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public class QuestionRepositoryTest {
@Test
@DisplayName("[QuestionRepository] 선택한 옵션에 따른 질문과 공통 질문 조회 테스트")
void findQuestionByOptionTest() {
List<Question> questions = questionRepository.findQuestionsBySendOptionIdEqualsOrSendOptionIdEquals(1L, 3L);
long normalSendOptionId = 1L;
long commonSendOptionId = 3L;
List<Question> questions = questionRepository.findQuestionsBySendOptionIdEqualsOrSendOptionIdEquals(normalSendOptionId, commonSendOptionId);

List<Long> sendOptionIds = questions.stream()
.map(q -> q.getSendOption().getId())
Expand Down

0 comments on commit 30c0846

Please sign in to comment.