Search in sources :

Example 1 with StudentUpdateStatus

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);
}
Also used : StudentUpdateStatus(teammates.common.datatransfer.StudentUpdateStatus) StudentAttributes(teammates.common.datatransfer.attributes.StudentAttributes)

Aggregations

StudentUpdateStatus (teammates.common.datatransfer.StudentUpdateStatus)1 StudentAttributes (teammates.common.datatransfer.attributes.StudentAttributes)1