Search in sources :

Example 21 with Student

use of fi.otavanopisto.pyramus.rest.model.Student in project muikku by otavanopisto.

the class TestUtilities method studentFromMockStudent.

public static Student studentFromMockStudent(MockStudent mockStudent) {
    Map<String, String> variables = new HashMap<>();
    List<String> tags = new ArrayList<>();
    Student student = new Student(mockStudent.getId(), mockStudent.getPersonId(), mockStudent.getFirstName(), mockStudent.getLastName(), null, null, null, null, null, null, null, null, null, null, mockStudent.getStudyEndTime(), mockStudent.getStudyProgrammeId(), null, null, null, false, mockStudent.getStudyStartDate(), null, null, null, variables, tags, false);
    return student;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) MockCourseStudent(fi.otavanopisto.muikku.mock.model.MockCourseStudent) Student(fi.otavanopisto.pyramus.rest.model.Student) CourseStudent(fi.otavanopisto.pyramus.rest.model.CourseStudent) MockStudent(fi.otavanopisto.muikku.mock.model.MockStudent)

Aggregations

Student (fi.otavanopisto.pyramus.rest.model.Student)21 StudentGroupStudent (fi.otavanopisto.pyramus.rest.model.StudentGroupStudent)16 StaffMember (fi.otavanopisto.pyramus.rest.model.StaffMember)9 SchoolDataBridgeInternalException (fi.otavanopisto.muikku.schooldata.SchoolDataBridgeInternalException)7 CourseStudent (fi.otavanopisto.pyramus.rest.model.CourseStudent)7 ArrayList (java.util.ArrayList)6 Person (fi.otavanopisto.pyramus.rest.model.Person)5 HashMap (java.util.HashMap)5 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)4 JSR310Module (com.fasterxml.jackson.datatype.jsr310.JSR310Module)4 PyramusUserProperty (fi.otavanopisto.muikku.plugins.schooldatapyramus.entities.PyramusUserProperty)3 CourseStaffMember (fi.otavanopisto.pyramus.rest.model.CourseStaffMember)3 Email (fi.otavanopisto.pyramus.rest.model.Email)3 OffsetDateTime (java.time.OffsetDateTime)3 MockCourseStudent (fi.otavanopisto.muikku.mock.model.MockCourseStudent)2 UserGroupUserEntity (fi.otavanopisto.muikku.model.users.UserGroupUserEntity)2 UserSchoolDataIdentifier (fi.otavanopisto.muikku.model.users.UserSchoolDataIdentifier)2 PyramusGroupUser (fi.otavanopisto.muikku.plugins.schooldatapyramus.entities.PyramusGroupUser)2 GroupUser (fi.otavanopisto.muikku.schooldata.entity.GroupUser)2 User (fi.otavanopisto.muikku.schooldata.entity.User)2