Search in sources :

Example 1 with FeedbackQuestionCopyTable

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

the class InstructorFeedbackQuestionCopyPageDataTest method allTests.

@Test
public void allTests() {
    ______TS("Typical case");
    List<FeedbackQuestionAttributes> copiableQuestions = new ArrayList<>();
    copiableQuestions.addAll(dataBundle.feedbackQuestions.values());
    InstructorFeedbackQuestionCopyPageData data = new InstructorFeedbackQuestionCopyPageData(dataBundle.accounts.get("instructor1OfCourse1"), dummySessionToken, copiableQuestions);
    FeedbackQuestionCopyTable copyForm = data.getCopyQnForm();
    assertEquals(dataBundle.feedbackQuestions.size(), copyForm.getQuestionRows().size());
}
Also used : InstructorFeedbackQuestionCopyPageData(teammates.ui.pagedata.InstructorFeedbackQuestionCopyPageData) FeedbackQuestionCopyTable(teammates.ui.template.FeedbackQuestionCopyTable) ArrayList(java.util.ArrayList) FeedbackQuestionAttributes(teammates.common.datatransfer.attributes.FeedbackQuestionAttributes) Test(org.testng.annotations.Test)

Aggregations

ArrayList (java.util.ArrayList)1 Test (org.testng.annotations.Test)1 FeedbackQuestionAttributes (teammates.common.datatransfer.attributes.FeedbackQuestionAttributes)1 InstructorFeedbackQuestionCopyPageData (teammates.ui.pagedata.InstructorFeedbackQuestionCopyPageData)1 FeedbackQuestionCopyTable (teammates.ui.template.FeedbackQuestionCopyTable)1