@Test public void testGenerateTestStudentSchoolEnrollment() { StudentSchoolEnrollment studentSchoolEnrollment = SifEntityGenerator.generateTestStudentSchoolEnrollment(); Assert.assertEquals(SifEntityGenerator.TEST_STUDENTSCHOOLENROLLMENT_REFID, studentSchoolEnrollment.getRefId()); Assert.assertEquals(SifEntityGenerator.TEST_SCHOOLINFO_REFID, studentSchoolEnrollment.getSchoolInfoRefId()); Assert.assertEquals(SifEntityGenerator.TEST_STUDENTPERSONAL_REFID, studentSchoolEnrollment.getStudentPersonalRefId()); Assert.assertEquals(MembershipType.HOME.getValue(), studentSchoolEnrollment.getMembershipType()); Assert.assertEquals(TimeFrame.CURRENT.getValue(), studentSchoolEnrollment.getTimeFrame()); Assert.assertEquals(2012, studentSchoolEnrollment.getSchoolYear().intValue()); Assert.assertEquals(ExitTypeCode._3502_NOT_ENROLLED_ELIGIBLE_TO.getValue(), studentSchoolEnrollment.getExitType().getCode()); Assert.assertEquals(EntryTypeCode._0619_1838.getValue(), studentSchoolEnrollment.getEntryType().getCode()); Assert.assertEquals(GradeLevelCode._10.getValue(), studentSchoolEnrollment.getGradeLevel().getCode()); Assert.assertEquals(new BigDecimal(1.00), studentSchoolEnrollment.getFTE()); Assert.assertEquals(FTPTStatus.FULLTIME.getValue(), studentSchoolEnrollment.getFTPTStatus()); Assert.assertEquals(PublicSchoolResidenceStatus._0598_1653.getValue(), studentSchoolEnrollment.getResidencyStatus().getCode()); Assert.assertEquals(NonResidentAttendRationale.VOCATIONAL.getValue(), studentSchoolEnrollment.getNonResidentAttendReason()); Calendar exitDate = studentSchoolEnrollment.getExitDate(); Assert.assertEquals(2012, exitDate.get(Calendar.YEAR)); Assert.assertEquals(9, exitDate.get(Calendar.MONTH)); Assert.assertEquals(17, exitDate.get(Calendar.DATE)); Calendar entryDate = studentSchoolEnrollment.getEntryDate(); Assert.assertEquals(2012, entryDate.get(Calendar.YEAR)); Assert.assertEquals(8, entryDate.get(Calendar.MONTH)); Assert.assertEquals(16, entryDate.get(Calendar.DATE)); }
public static StudentSchoolEnrollment generateTestStudentSchoolEnrollment() { StudentSchoolEnrollment retVal = new StudentSchoolEnrollment(); retVal.setRefId(TEST_STUDENTSCHOOLENROLLMENT_REFID); retVal.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); retVal.setStudentPersonalRefId(TEST_STUDENTPERSONAL_REFID); retVal.setMembershipType(MembershipType.HOME); retVal.setTimeFrame(TimeFrame.CURRENT); retVal.setSchoolYear(2012); retVal.setExitType(ExitTypeCode._3502_NOT_ENROLLED_ELIGIBLE_TO); retVal.setExitDate(new GregorianCalendar(2012, 9, 17)); retVal.setEntryDate(new GregorianCalendar(2012, 8, 16)); retVal.setEntryType(EntryTypeCode._0619_1838); retVal.setGradeLevel(GradeLevelCode._10); retVal.setFTE(new BigDecimal(1.00)); retVal.setFTPTStatus(FTPTStatus.FULLTIME); ResidencyStatus rs = new ResidencyStatus(); rs.setCode(PublicSchoolResidenceStatus._0598_1653); retVal.setResidencyStatus(rs); retVal.setNonResidentAttendReason(NonResidentAttendRationale.VOCATIONAL); return retVal; }
SifEntityGenerator { public static StudentSchoolEnrollment generateTestStudentSchoolEnrollment() { StudentSchoolEnrollment retVal = new StudentSchoolEnrollment(); retVal.setRefId(TEST_STUDENTSCHOOLENROLLMENT_REFID); retVal.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); retVal.setStudentPersonalRefId(TEST_STUDENTPERSONAL_REFID); retVal.setMembershipType(MembershipType.HOME); retVal.setTimeFrame(TimeFrame.CURRENT); retVal.setSchoolYear(2012); retVal.setExitType(ExitTypeCode._3502_NOT_ENROLLED_ELIGIBLE_TO); retVal.setExitDate(new GregorianCalendar(2012, 9, 17)); retVal.setEntryDate(new GregorianCalendar(2012, 8, 16)); retVal.setEntryType(EntryTypeCode._0619_1838); retVal.setGradeLevel(GradeLevelCode._10); retVal.setFTE(new BigDecimal(1.00)); retVal.setFTPTStatus(FTPTStatus.FULLTIME); ResidencyStatus rs = new ResidencyStatus(); rs.setCode(PublicSchoolResidenceStatus._0598_1653); retVal.setResidencyStatus(rs); retVal.setNonResidentAttendReason(NonResidentAttendRationale.VOCATIONAL); return retVal; } }
SifEntityGenerator { public static StudentSchoolEnrollment generateTestStudentSchoolEnrollment() { StudentSchoolEnrollment retVal = new StudentSchoolEnrollment(); retVal.setRefId(TEST_STUDENTSCHOOLENROLLMENT_REFID); retVal.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); retVal.setStudentPersonalRefId(TEST_STUDENTPERSONAL_REFID); retVal.setMembershipType(MembershipType.HOME); retVal.setTimeFrame(TimeFrame.CURRENT); retVal.setSchoolYear(2012); retVal.setExitType(ExitTypeCode._3502_NOT_ENROLLED_ELIGIBLE_TO); retVal.setExitDate(new GregorianCalendar(2012, 9, 17)); retVal.setEntryDate(new GregorianCalendar(2012, 8, 16)); retVal.setEntryType(EntryTypeCode._0619_1838); retVal.setGradeLevel(GradeLevelCode._10); retVal.setFTE(new BigDecimal(1.00)); retVal.setFTPTStatus(FTPTStatus.FULLTIME); ResidencyStatus rs = new ResidencyStatus(); rs.setCode(PublicSchoolResidenceStatus._0598_1653); retVal.setResidencyStatus(rs); retVal.setNonResidentAttendReason(NonResidentAttendRationale.VOCATIONAL); return retVal; }  }
SifEntityGenerator { public static StudentSchoolEnrollment generateTestStudentSchoolEnrollment() { StudentSchoolEnrollment retVal = new StudentSchoolEnrollment(); retVal.setRefId(TEST_STUDENTSCHOOLENROLLMENT_REFID); retVal.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); retVal.setStudentPersonalRefId(TEST_STUDENTPERSONAL_REFID); retVal.setMembershipType(MembershipType.HOME); retVal.setTimeFrame(TimeFrame.CURRENT); retVal.setSchoolYear(2012); retVal.setExitType(ExitTypeCode._3502_NOT_ENROLLED_ELIGIBLE_TO); retVal.setExitDate(new GregorianCalendar(2012, 9, 17)); retVal.setEntryDate(new GregorianCalendar(2012, 8, 16)); retVal.setEntryType(EntryTypeCode._0619_1838); retVal.setGradeLevel(GradeLevelCode._10); retVal.setFTE(new BigDecimal(1.00)); retVal.setFTPTStatus(FTPTStatus.FULLTIME); ResidencyStatus rs = new ResidencyStatus(); rs.setCode(PublicSchoolResidenceStatus._0598_1653); retVal.setResidencyStatus(rs); retVal.setNonResidentAttendReason(NonResidentAttendRationale.VOCATIONAL); return retVal; }  static SchoolInfo generateTestSchoolInfo(); static LEAInfo generateTestLEAInfo(); static SEAInfo generateTestSEAInfo(); static StudentSchoolEnrollment generateTestStudentSchoolEnrollment(); static StudentLEARelationship generateTestStudentLeaRelationship(); static StudentPersonal generateTestStudentPersonal(); static StaffPersonal generateTestStaffPersonal(); static EmployeePersonal generateTestEmployeePersonal(); static StaffAssignment generateTestStaffAssignment(); static EmploymentRecord generateTestEmploymentRecord(); static EmployeeAssignment generateTestEmployeeAssignment(); }
SifEntityGenerator { public static StudentSchoolEnrollment generateTestStudentSchoolEnrollment() { StudentSchoolEnrollment retVal = new StudentSchoolEnrollment(); retVal.setRefId(TEST_STUDENTSCHOOLENROLLMENT_REFID); retVal.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); retVal.setStudentPersonalRefId(TEST_STUDENTPERSONAL_REFID); retVal.setMembershipType(MembershipType.HOME); retVal.setTimeFrame(TimeFrame.CURRENT); retVal.setSchoolYear(2012); retVal.setExitType(ExitTypeCode._3502_NOT_ENROLLED_ELIGIBLE_TO); retVal.setExitDate(new GregorianCalendar(2012, 9, 17)); retVal.setEntryDate(new GregorianCalendar(2012, 8, 16)); retVal.setEntryType(EntryTypeCode._0619_1838); retVal.setGradeLevel(GradeLevelCode._10); retVal.setFTE(new BigDecimal(1.00)); retVal.setFTPTStatus(FTPTStatus.FULLTIME); ResidencyStatus rs = new ResidencyStatus(); rs.setCode(PublicSchoolResidenceStatus._0598_1653); retVal.setResidencyStatus(rs); retVal.setNonResidentAttendReason(NonResidentAttendRationale.VOCATIONAL); return retVal; }  static SchoolInfo generateTestSchoolInfo(); static LEAInfo generateTestLEAInfo(); static SEAInfo generateTestSEAInfo(); static StudentSchoolEnrollment generateTestStudentSchoolEnrollment(); static StudentLEARelationship generateTestStudentLeaRelationship(); static StudentPersonal generateTestStudentPersonal(); static StaffPersonal generateTestStaffPersonal(); static EmployeePersonal generateTestEmployeePersonal(); static StaffAssignment generateTestStaffAssignment(); static EmploymentRecord generateTestEmploymentRecord(); static EmployeeAssignment generateTestEmployeeAssignment(); static final String TEST_SCHOOLINFO_REFID; static final String TEST_LEAINFO_REFID; static final String TEST_SEAINFO_REFID; static final String TEST_STUDENTPERSONAL_REFID; static final String TEST_STUDENTSCHOOLENROLLMENT_REFID; static final String TEST_STUDENTLEARELATIONSHIP_REFID; static final String TEST_STAFFPERSONAL_REFID; static final String TEST_EMPLOYEEPERSONAL_REFID; static final String TEST_STAFFASSIGNMENT_REFID; static final String TEST_EMPLOYMENTRECORD_REFID; static final String TEST_EMPLOYEEASSIGNMENT_REFID; }