use of teammates.ui.template.CourseTable in project teammates by TEAMMATES.
the class StudentHomePageDataTest method testCourseTables.
private void testCourseTables(List<CourseTable> courseTables) {
assertEquals(courses.size(), courseTables.size());
CourseDetailsBundle newCourse = courses.get(0);
CourseTable newCourseTable = courseTables.get(0);
testCourseTableMeta(newCourse.course, newCourseTable);
testNewCourseTable(newCourse, newCourseTable);
CourseDetailsBundle oldCourse = courses.get(1);
CourseTable oldCourseTable = courseTables.get(1);
testCourseTableMeta(oldCourse.course, oldCourseTable);
testOldCourseTable(oldCourse, oldCourseTable);
}
use of teammates.ui.template.CourseTable in project teammates by TEAMMATES.
the class StudentHomePageData method setCourseTables.
private void setCourseTables(List<CourseDetailsBundle> courses, Map<FeedbackSessionAttributes, Boolean> sessionSubmissionStatusMap) {
courseTables = new ArrayList<>();
// incremented for each session row without resetting between courses
int startingSessionIdx = 0;
for (CourseDetailsBundle courseDetails : courses) {
CourseTable courseTable = new CourseTable(courseDetails.course, createCourseTableLinks(courseDetails.course.getId()), createSessionRows(courseDetails.feedbackSessions, sessionSubmissionStatusMap, startingSessionIdx));
startingSessionIdx += courseDetails.feedbackSessions.size();
courseTables.add(courseTable);
}
}
Aggregations