@Test public void test_getGrades() { List<Grade> grades = new ArrayList<>(); when(gradeRepository.findForCriteria(any(GradeGetRequest.class))).thenReturn(grades); List<Grade> result = gradeService.getGrades(any(GradeGetRequest.class)); assertThat(result).isEqualTo(grades); }
public List<Grade> getGrades(GradeGetRequest gradeGetRequest) { return gradeRepository.findForCriteria(gradeGetRequest); }
GradeService { public List<Grade> getGrades(GradeGetRequest gradeGetRequest) { return gradeRepository.findForCriteria(gradeGetRequest); } }
GradeService { public List<Grade> getGrades(GradeGetRequest gradeGetRequest) { return gradeRepository.findForCriteria(gradeGetRequest); }  }
GradeService { public List<Grade> getGrades(GradeGetRequest gradeGetRequest) { return gradeRepository.findForCriteria(gradeGetRequest); }  List<Grade> getGrades(GradeGetRequest gradeGetRequest); }
GradeService { public List<Grade> getGrades(GradeGetRequest gradeGetRequest) { return gradeRepository.findForCriteria(gradeGetRequest); }  List<Grade> getGrades(GradeGetRequest gradeGetRequest);  }