We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
applicantCard 조회 시 평가 점수와 갯수가 현재 위치한 프로세스에 대해서만 나오도록 변경
@DisplayName("특정 Process들에 대한 ApplicantCard 목록을 반환한다.") @Test void mytest() { // given Process process1 = processRepository.save(ProcessFixture.applyType()); Process process2 = processRepository.save(ProcessFixture.interview(null)); Applicant applicant = ApplicantFixture.pendingDobby(process1); applicantRepository.save(applicant); List<Evaluation> evaluations = List.of( // 지원 프로세스에 5점 저장 EvaluationFixture.fivePoints(process1, applicant), // 인터뷰 프로세스에 4점 저장 EvaluationFixture.fourPoints(process2, applicant) ); evaluationRepository.saveAll(evaluations); // when // 평가는 특정 지원자의 현재 위치하는 프로세스에 대해서만 조회해야함. List<ApplicantCard> applicantCards = applicantRepository.findApplicantCardsByProcesses(List.of(process1)); // then ApplicantCard applicantCard1 = applicantCards.get(0); assertAll( () -> assertThat(applicantCard1.evaluationCount()).isEqualTo(1), () -> assertThat(applicantCard1.averageScore()).isEqualTo(5.0) ); }
아래의 별표줄 밑에 요구사항 ID만 작성해주세요. Prefix 금지!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
목적
작업 세부사항
참고 사항
The text was updated successfully, but these errors were encountered: