use of teammates.common.datatransfer.StudentUpdateStatus in project teammates by TEAMMATES.
the class InstructorCourseEnrollSaveActionTest method verifyStudentEnrollmentStatus.
/**
* Verify if {@code student} exists in the {@code panelList}.
*/
private void verifyStudentEnrollmentStatus(StudentAttributes student, List<EnrollResultPanel> panelList) {
boolean result = false;
StudentUpdateStatus status = student.updateStatus;
for (StudentAttributes s : panelList.get(status.numericRepresentation).getStudentList()) {
if (s.isEnrollInfoSameAs(student)) {
result = true;
break;
}
}
assertTrue(result);
}
Aggregations