@Test public void testGenerateTestEmployeeAssignment() { EmployeeAssignment employeeAssignment = SifEntityGenerator.generateTestEmployeeAssignment(); Assert.assertEquals(SifEntityGenerator.TEST_EMPLOYEEASSIGNMENT_REFID, employeeAssignment.getRefId()); Assert.assertEquals(SifEntityGenerator.TEST_EMPLOYEEPERSONAL_REFID, employeeAssignment.getEmployeePersonalRefId()); Assert.assertEquals("Twelfth grade computer science teacher", employeeAssignment.getDescription()); Assert.assertEquals(YesNo.YES.getValue(), employeeAssignment.getPrimaryAssignment()); Calendar jobStartDate = employeeAssignment.getJobStartDate(); Assert.assertEquals(2010, jobStartDate.get(Calendar.YEAR)); Assert.assertEquals(7, jobStartDate.get(Calendar.MONTH)); Assert.assertEquals(1, jobStartDate.get(Calendar.DATE)); Calendar jobEndDate = employeeAssignment.getJobEndDate(); Assert.assertEquals(2013, jobEndDate.get(Calendar.YEAR)); Assert.assertEquals(6, jobEndDate.get(Calendar.MONTH)); Assert.assertEquals(31, jobEndDate.get(Calendar.DATE)); Assert.assertEquals(new BigDecimal(1.00), employeeAssignment.getJobFTE()); JobClassification jobClassification = employeeAssignment.getJobClassification(); Assert.assertEquals(JobClassificationCode.TEACHER.getValue(), jobClassification.getCode()); OtherCodeList jobClassificationOtherCodeList = jobClassification.getOtherCodeList(); Assert.assertEquals(1, jobClassificationOtherCodeList.size()); OtherCode jobClassificationOtherCode = jobClassificationOtherCodeList.get(0); Assert.assertEquals("12345", jobClassificationOtherCode.getValue()); HRProgramType programType = employeeAssignment.getProgramType(); Assert.assertEquals(ProgramTypeCode.REGULAR_EDUCATION.getValue(), programType.getCode()); OtherCodeList programTypeOtherCodeList = programType.getOtherCodeList(); Assert.assertEquals(1, programTypeOtherCodeList.size()); OtherCode programTypeOtherCode = programTypeOtherCodeList.get(0); Assert.assertEquals("67890", programTypeOtherCode.getValue()); ProgramFundingSource programFundingSource = employeeAssignment.getFundingSource(); Assert.assertEquals("0617", programFundingSource.getCode()); OtherCodeList programFundingSourceOtherCodeList = programFundingSource.getOtherCodeList(); Assert.assertEquals(1, programFundingSourceOtherCodeList.size()); OtherCode programFundingSourceOtherCode = programFundingSourceOtherCodeList.get(0); Assert.assertEquals("54321", programFundingSourceOtherCode.getValue()); }
public static EmployeeAssignment generateTestEmployeeAssignment() { EmployeeAssignment employeeAssignment = new EmployeeAssignment(); employeeAssignment.setRefId(TEST_EMPLOYEEASSIGNMENT_REFID); employeeAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); employeeAssignment.setDescription("Twelfth grade computer science teacher"); employeeAssignment.setPrimaryAssignment(YesNo.YES); employeeAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); employeeAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); employeeAssignment.setJobFTE(new BigDecimal(1.00)); JobClassification jobClassification = new JobClassification(JobClassificationCode.TEACHER); OtherCode jobClassificationOtherCode = new OtherCode(); jobClassificationOtherCode.setValue("12345"); jobClassification.setOtherCodeList(new OtherCodeList(jobClassificationOtherCode)); employeeAssignment.setJobClassification(jobClassification); HRProgramType programType = new HRProgramType(); programType.setCode(ProgramTypeCode.REGULAR_EDUCATION); OtherCode programTypeOtherCode = new OtherCode(); programTypeOtherCode.setValue("67890"); programType.setOtherCodeList(new OtherCodeList(programTypeOtherCode)); employeeAssignment.setProgramType(programType); ProgramFundingSource programFundingSource = new ProgramFundingSource(); programFundingSource.setCode("0617"); OtherCode programFundingSourceOtherCode = new OtherCode(); programFundingSourceOtherCode.setValue("54321"); programFundingSource.setOtherCodeList(new OtherCodeList(programFundingSourceOtherCode)); employeeAssignment.setFundingSource(programFundingSource); return employeeAssignment; }
SifEntityGenerator { public static EmployeeAssignment generateTestEmployeeAssignment() { EmployeeAssignment employeeAssignment = new EmployeeAssignment(); employeeAssignment.setRefId(TEST_EMPLOYEEASSIGNMENT_REFID); employeeAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); employeeAssignment.setDescription("Twelfth grade computer science teacher"); employeeAssignment.setPrimaryAssignment(YesNo.YES); employeeAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); employeeAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); employeeAssignment.setJobFTE(new BigDecimal(1.00)); JobClassification jobClassification = new JobClassification(JobClassificationCode.TEACHER); OtherCode jobClassificationOtherCode = new OtherCode(); jobClassificationOtherCode.setValue("12345"); jobClassification.setOtherCodeList(new OtherCodeList(jobClassificationOtherCode)); employeeAssignment.setJobClassification(jobClassification); HRProgramType programType = new HRProgramType(); programType.setCode(ProgramTypeCode.REGULAR_EDUCATION); OtherCode programTypeOtherCode = new OtherCode(); programTypeOtherCode.setValue("67890"); programType.setOtherCodeList(new OtherCodeList(programTypeOtherCode)); employeeAssignment.setProgramType(programType); ProgramFundingSource programFundingSource = new ProgramFundingSource(); programFundingSource.setCode("0617"); OtherCode programFundingSourceOtherCode = new OtherCode(); programFundingSourceOtherCode.setValue("54321"); programFundingSource.setOtherCodeList(new OtherCodeList(programFundingSourceOtherCode)); employeeAssignment.setFundingSource(programFundingSource); return employeeAssignment; } }
SifEntityGenerator { public static EmployeeAssignment generateTestEmployeeAssignment() { EmployeeAssignment employeeAssignment = new EmployeeAssignment(); employeeAssignment.setRefId(TEST_EMPLOYEEASSIGNMENT_REFID); employeeAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); employeeAssignment.setDescription("Twelfth grade computer science teacher"); employeeAssignment.setPrimaryAssignment(YesNo.YES); employeeAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); employeeAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); employeeAssignment.setJobFTE(new BigDecimal(1.00)); JobClassification jobClassification = new JobClassification(JobClassificationCode.TEACHER); OtherCode jobClassificationOtherCode = new OtherCode(); jobClassificationOtherCode.setValue("12345"); jobClassification.setOtherCodeList(new OtherCodeList(jobClassificationOtherCode)); employeeAssignment.setJobClassification(jobClassification); HRProgramType programType = new HRProgramType(); programType.setCode(ProgramTypeCode.REGULAR_EDUCATION); OtherCode programTypeOtherCode = new OtherCode(); programTypeOtherCode.setValue("67890"); programType.setOtherCodeList(new OtherCodeList(programTypeOtherCode)); employeeAssignment.setProgramType(programType); ProgramFundingSource programFundingSource = new ProgramFundingSource(); programFundingSource.setCode("0617"); OtherCode programFundingSourceOtherCode = new OtherCode(); programFundingSourceOtherCode.setValue("54321"); programFundingSource.setOtherCodeList(new OtherCodeList(programFundingSourceOtherCode)); employeeAssignment.setFundingSource(programFundingSource); return employeeAssignment; }  }
SifEntityGenerator { public static EmployeeAssignment generateTestEmployeeAssignment() { EmployeeAssignment employeeAssignment = new EmployeeAssignment(); employeeAssignment.setRefId(TEST_EMPLOYEEASSIGNMENT_REFID); employeeAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); employeeAssignment.setDescription("Twelfth grade computer science teacher"); employeeAssignment.setPrimaryAssignment(YesNo.YES); employeeAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); employeeAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); employeeAssignment.setJobFTE(new BigDecimal(1.00)); JobClassification jobClassification = new JobClassification(JobClassificationCode.TEACHER); OtherCode jobClassificationOtherCode = new OtherCode(); jobClassificationOtherCode.setValue("12345"); jobClassification.setOtherCodeList(new OtherCodeList(jobClassificationOtherCode)); employeeAssignment.setJobClassification(jobClassification); HRProgramType programType = new HRProgramType(); programType.setCode(ProgramTypeCode.REGULAR_EDUCATION); OtherCode programTypeOtherCode = new OtherCode(); programTypeOtherCode.setValue("67890"); programType.setOtherCodeList(new OtherCodeList(programTypeOtherCode)); employeeAssignment.setProgramType(programType); ProgramFundingSource programFundingSource = new ProgramFundingSource(); programFundingSource.setCode("0617"); OtherCode programFundingSourceOtherCode = new OtherCode(); programFundingSourceOtherCode.setValue("54321"); programFundingSource.setOtherCodeList(new OtherCodeList(programFundingSourceOtherCode)); employeeAssignment.setFundingSource(programFundingSource); return employeeAssignment; }  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 EmployeeAssignment generateTestEmployeeAssignment() { EmployeeAssignment employeeAssignment = new EmployeeAssignment(); employeeAssignment.setRefId(TEST_EMPLOYEEASSIGNMENT_REFID); employeeAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); employeeAssignment.setDescription("Twelfth grade computer science teacher"); employeeAssignment.setPrimaryAssignment(YesNo.YES); employeeAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); employeeAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); employeeAssignment.setJobFTE(new BigDecimal(1.00)); JobClassification jobClassification = new JobClassification(JobClassificationCode.TEACHER); OtherCode jobClassificationOtherCode = new OtherCode(); jobClassificationOtherCode.setValue("12345"); jobClassification.setOtherCodeList(new OtherCodeList(jobClassificationOtherCode)); employeeAssignment.setJobClassification(jobClassification); HRProgramType programType = new HRProgramType(); programType.setCode(ProgramTypeCode.REGULAR_EDUCATION); OtherCode programTypeOtherCode = new OtherCode(); programTypeOtherCode.setValue("67890"); programType.setOtherCodeList(new OtherCodeList(programTypeOtherCode)); employeeAssignment.setProgramType(programType); ProgramFundingSource programFundingSource = new ProgramFundingSource(); programFundingSource.setCode("0617"); OtherCode programFundingSourceOtherCode = new OtherCode(); programFundingSourceOtherCode.setValue("54321"); programFundingSource.setOtherCodeList(new OtherCodeList(programFundingSourceOtherCode)); employeeAssignment.setFundingSource(programFundingSource); return employeeAssignment; }  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; }