@Test public void testGenerateTestStaffAssignment() { StaffAssignment staffAssignment = SifEntityGenerator.generateTestStaffAssignment(); Assert.assertEquals(SifEntityGenerator.TEST_STAFFASSIGNMENT_REFID, staffAssignment.getRefId()); Assert.assertEquals(SifEntityGenerator.TEST_SCHOOLINFO_REFID, staffAssignment.getSchoolInfoRefId()); Assert.assertEquals(SifEntityGenerator.TEST_STAFFPERSONAL_REFID, staffAssignment.getStaffPersonalRefId()); Assert.assertEquals(SifEntityGenerator.TEST_EMPLOYEEPERSONAL_REFID, staffAssignment.getEmployeePersonalRefId()); Assert.assertEquals(2013, staffAssignment.getSchoolYear().intValue()); Assert.assertEquals("Twelfth grade computer science teacher", staffAssignment.getDescription()); Assert.assertEquals(YesNo.YES.getValue(), staffAssignment.getPrimaryAssignment()); Calendar jobStartDate = staffAssignment.getJobStartDate(); Assert.assertEquals(2010, jobStartDate.get(Calendar.YEAR)); Assert.assertEquals(7, jobStartDate.get(Calendar.MONTH)); Assert.assertEquals(1, jobStartDate.get(Calendar.DATE)); Calendar jobEndDate = staffAssignment.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), staffAssignment.getJobFTE()); JobFunction jobFunction = staffAssignment.getJobFunction(); Assert.assertEquals(JobFunctionCode.INSTRUCTION.getValue(), jobFunction.getCode()); TeachingAssignment teachingAssignment = staffAssignment.getTeachingAssignment(); Assert.assertEquals(TeachingArea.COMPUTER_SCIENCE.getValue(), teachingAssignment.getCode()); GradeLevels gradeLevels = staffAssignment.getGradeLevels(); Assert.assertEquals(1, gradeLevels.size()); GradeLevel gradeLevel1 = gradeLevels.get(0); Assert.assertEquals(GradeLevelCode._12.getValue(), gradeLevel1.getCode()); Assert.assertEquals(YesNo.NO.getValue(), staffAssignment.getItinerantTeacher()); InstructionalLevel instructionalLevel = staffAssignment.getInstructionalLevel(); Assert.assertEquals(InstructionalLevelCode.COLLEGE_LEVEL.getValue(), instructionalLevel.getCode()); }
public static StaffAssignment generateTestStaffAssignment() { StaffAssignment staffAssignment = new StaffAssignment(); staffAssignment.setRefId(TEST_STAFFASSIGNMENT_REFID); staffAssignment.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); staffAssignment.setStaffPersonalRefId(TEST_STAFFPERSONAL_REFID); staffAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffAssignment.setSchoolYear(new Integer(2013)); staffAssignment.setDescription("Twelfth grade computer science teacher"); staffAssignment.setPrimaryAssignment(YesNo.YES); staffAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); staffAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); staffAssignment.setJobFTE(new BigDecimal(1.00)); staffAssignment.setJobFunction(new JobFunction(JobFunctionCode.INSTRUCTION)); staffAssignment.setTeachingAssignment(new TeachingAssignment(TeachingArea.COMPUTER_SCIENCE)); staffAssignment.setGradeLevels(new GradeLevels(new GradeLevel(GradeLevelCode._12))); staffAssignment.setItinerantTeacher(YesNo.NO); InstructionalLevel instructionalLevel = new InstructionalLevel(); instructionalLevel.setCode(InstructionalLevelCode.COLLEGE_LEVEL); staffAssignment.setInstructionalLevel(instructionalLevel); return staffAssignment; }
SifEntityGenerator { public static StaffAssignment generateTestStaffAssignment() { StaffAssignment staffAssignment = new StaffAssignment(); staffAssignment.setRefId(TEST_STAFFASSIGNMENT_REFID); staffAssignment.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); staffAssignment.setStaffPersonalRefId(TEST_STAFFPERSONAL_REFID); staffAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffAssignment.setSchoolYear(new Integer(2013)); staffAssignment.setDescription("Twelfth grade computer science teacher"); staffAssignment.setPrimaryAssignment(YesNo.YES); staffAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); staffAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); staffAssignment.setJobFTE(new BigDecimal(1.00)); staffAssignment.setJobFunction(new JobFunction(JobFunctionCode.INSTRUCTION)); staffAssignment.setTeachingAssignment(new TeachingAssignment(TeachingArea.COMPUTER_SCIENCE)); staffAssignment.setGradeLevels(new GradeLevels(new GradeLevel(GradeLevelCode._12))); staffAssignment.setItinerantTeacher(YesNo.NO); InstructionalLevel instructionalLevel = new InstructionalLevel(); instructionalLevel.setCode(InstructionalLevelCode.COLLEGE_LEVEL); staffAssignment.setInstructionalLevel(instructionalLevel); return staffAssignment; } }
SifEntityGenerator { public static StaffAssignment generateTestStaffAssignment() { StaffAssignment staffAssignment = new StaffAssignment(); staffAssignment.setRefId(TEST_STAFFASSIGNMENT_REFID); staffAssignment.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); staffAssignment.setStaffPersonalRefId(TEST_STAFFPERSONAL_REFID); staffAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffAssignment.setSchoolYear(new Integer(2013)); staffAssignment.setDescription("Twelfth grade computer science teacher"); staffAssignment.setPrimaryAssignment(YesNo.YES); staffAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); staffAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); staffAssignment.setJobFTE(new BigDecimal(1.00)); staffAssignment.setJobFunction(new JobFunction(JobFunctionCode.INSTRUCTION)); staffAssignment.setTeachingAssignment(new TeachingAssignment(TeachingArea.COMPUTER_SCIENCE)); staffAssignment.setGradeLevels(new GradeLevels(new GradeLevel(GradeLevelCode._12))); staffAssignment.setItinerantTeacher(YesNo.NO); InstructionalLevel instructionalLevel = new InstructionalLevel(); instructionalLevel.setCode(InstructionalLevelCode.COLLEGE_LEVEL); staffAssignment.setInstructionalLevel(instructionalLevel); return staffAssignment; }  }
SifEntityGenerator { public static StaffAssignment generateTestStaffAssignment() { StaffAssignment staffAssignment = new StaffAssignment(); staffAssignment.setRefId(TEST_STAFFASSIGNMENT_REFID); staffAssignment.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); staffAssignment.setStaffPersonalRefId(TEST_STAFFPERSONAL_REFID); staffAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffAssignment.setSchoolYear(new Integer(2013)); staffAssignment.setDescription("Twelfth grade computer science teacher"); staffAssignment.setPrimaryAssignment(YesNo.YES); staffAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); staffAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); staffAssignment.setJobFTE(new BigDecimal(1.00)); staffAssignment.setJobFunction(new JobFunction(JobFunctionCode.INSTRUCTION)); staffAssignment.setTeachingAssignment(new TeachingAssignment(TeachingArea.COMPUTER_SCIENCE)); staffAssignment.setGradeLevels(new GradeLevels(new GradeLevel(GradeLevelCode._12))); staffAssignment.setItinerantTeacher(YesNo.NO); InstructionalLevel instructionalLevel = new InstructionalLevel(); instructionalLevel.setCode(InstructionalLevelCode.COLLEGE_LEVEL); staffAssignment.setInstructionalLevel(instructionalLevel); return staffAssignment; }  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 StaffAssignment generateTestStaffAssignment() { StaffAssignment staffAssignment = new StaffAssignment(); staffAssignment.setRefId(TEST_STAFFASSIGNMENT_REFID); staffAssignment.setSchoolInfoRefId(TEST_SCHOOLINFO_REFID); staffAssignment.setStaffPersonalRefId(TEST_STAFFPERSONAL_REFID); staffAssignment.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffAssignment.setSchoolYear(new Integer(2013)); staffAssignment.setDescription("Twelfth grade computer science teacher"); staffAssignment.setPrimaryAssignment(YesNo.YES); staffAssignment.setJobStartDate(new GregorianCalendar(2010, 7, 1)); staffAssignment.setJobEndDate(new GregorianCalendar(2013, 6, 31)); staffAssignment.setJobFTE(new BigDecimal(1.00)); staffAssignment.setJobFunction(new JobFunction(JobFunctionCode.INSTRUCTION)); staffAssignment.setTeachingAssignment(new TeachingAssignment(TeachingArea.COMPUTER_SCIENCE)); staffAssignment.setGradeLevels(new GradeLevels(new GradeLevel(GradeLevelCode._12))); staffAssignment.setItinerantTeacher(YesNo.NO); InstructionalLevel instructionalLevel = new InstructionalLevel(); instructionalLevel.setCode(InstructionalLevelCode.COLLEGE_LEVEL); staffAssignment.setInstructionalLevel(instructionalLevel); return staffAssignment; }  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; }