Skip to content

Commit

Permalink
test: essayAnswerService 테스트 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hong-sile committed Oct 11, 2023
1 parent 3c9ee5e commit 4e1e43f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import wooteco.prolog.common.exception.BadRequestException;
import wooteco.prolog.member.application.MemberService;
import wooteco.prolog.member.domain.Member;
import wooteco.prolog.member.domain.Role;
import wooteco.prolog.roadmap.application.dto.EssayAnswerRequest;
import wooteco.prolog.roadmap.application.dto.EssayAnswerUpdateRequest;
import wooteco.prolog.roadmap.domain.EssayAnswer;
Expand Down Expand Up @@ -75,7 +76,7 @@ void createEssayAnswer() {
when(quizRepository.findById(anyLong())).thenReturn(
Optional.of(new Quiz(null, "question")));
when(memberService.findById(anyLong())).thenReturn(
new Member(null, null, null, null, null));
new Member(null, null, Role.CREW, null, null));

//when
final Long essayAnswer = essayAnswerService.createEssayAnswer(ESSAY_ANSWER_REQUEST, 1L);
Expand Down

0 comments on commit 4e1e43f

Please sign in to comment.