*/
public class AutoImportTestData {
public static void main(String args[]) {
Scenario sc = Scenario.fromJSONFile("./scenario2.json");
TMAPI.cleanup();
// -----Course 1-----//
TMAPI.createCourse(sc.course);
TMAPI.enrollStudents(sc.course.courseId, sc.course.students);
// ..evaluation 1 OPEN
sc.evaluation.p2pcomments = "false";
TMAPI.createEvaluation(sc.evaluation);
TMAPI.studentsJoinCourse(sc.students, sc.course.courseId);
TMAPI.openEvaluation(sc.course.courseId, sc.evaluation.name);
TMAPI.studentsSubmitFeedbacks(sc.course.students, sc.course.courseId,
sc.evaluation.name);
// ..evaluation 2 PUBLISHED
TMAPI.createEvaluation(sc.evaluation2);
TMAPI.studentsJoinCourse(sc.students, sc.course.courseId);
TMAPI.openEvaluation(sc.course.courseId, sc.evaluation2.name);
// TMAPI.firstStudentDidNotSubmitFeedbacks(sc.students, sc.course.courseId,
// sc.evaluation2.name);
TMAPI.studentsSubmitFeedbacks(
sc.students.subList(1, sc.students.size() - 1), sc.course.courseId,
sc.evaluation2.name);
TMAPI.closeEvaluation(sc.course.courseId, sc.evaluation2.name);
TMAPI.publishEvaluation(sc.course.courseId, sc.evaluation2.name);
Scenario nsc = Scenario.newScenario("target/test-classes/scenario.json");
// -----Course 2-----//
TMAPI.createCourse(nsc.course2);
TMAPI.enrollStudents(nsc.course2.courseId, nsc.course2.students);
// ..evaluation 3 CLOSED