Search in sources :

Example 1 with StudentInfoTable

use of teammates.ui.template.StudentInfoTable in project teammates by TEAMMATES.

the class InstructorCourseStudentDetailsEditPageDataTest method allTests.

@Test
public void allTests() {
    InstructorCourseStudentDetailsEditPageData data = createData();
    ______TS("With no student profile (Details edit shows only the info table)");
    assertNull(data.getStudentProfile());
    StudentInfoTable studentInfoTable = data.getStudentInfoTable();
    assertNotNull(studentInfoTable);
    assertEquals(inputStudent.name, studentInfoTable.getName());
    assertEquals(inputStudent.email, studentInfoTable.getEmail());
    assertEquals(inputStudent.section, studentInfoTable.getSection());
    assertEquals(inputStudent.team, studentInfoTable.getTeam());
    assertEquals(inputStudent.comments, studentInfoTable.getComments());
    assertEquals(inputStudent.course, studentInfoTable.getCourse());
    assertEquals(hasSection, studentInfoTable.getHasSection());
}
Also used : InstructorCourseStudentDetailsEditPageData(teammates.ui.pagedata.InstructorCourseStudentDetailsEditPageData) StudentInfoTable(teammates.ui.template.StudentInfoTable) Test(org.testng.annotations.Test)

Aggregations

Test (org.testng.annotations.Test)1 InstructorCourseStudentDetailsEditPageData (teammates.ui.pagedata.InstructorCourseStudentDetailsEditPageData)1 StudentInfoTable (teammates.ui.template.StudentInfoTable)1