Package net.sf.esims.model.entity

Examples of net.sf.esims.model.entity.SchoolEssence


  private StandardServiceIfc standardService;

  public void testCRUD() {
    Date startDate = EsimsUtils.createDate(1, Calendar.JUNE, 2007);
    Date endDate = EsimsUtils.createDate(31, Calendar.MAY, 2008);
    SchoolEssence essence = UtilsForTestCases.createValidSchoolEssence();
    School school = essence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear =new AcademicYear("2006-2007", school,
        startDate, endDate, "active");
    this.academicYearService.saveAcademicYear(academicYear);
    startDate = EsimsUtils.createDate(1, Calendar.JUNE, 2007);
View Full Code Here


 
 
  public void testGetByFormNumber(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
View Full Code Here

  }

  public void  getByAdmissionNumber(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
View Full Code Here

  }
 
  public void  testGetByStandard(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
View Full Code Here

  }
 
  public void testGetByStandardAndDivision(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
View Full Code Here

  }
 
  public void testGetById(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
View Full Code Here

  }
 
  public void testSave(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
View Full Code Here

  }
 
  public void testDelete(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
View Full Code Here

    //assertEquals(1001,this.studentService.generateAdmissionNumber());
   
   
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
View Full Code Here

    DatabaseOperation.DELETE_ALL.execute(connection, academicYearDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, schoolDataSet);
   
    Date startDate = EsimsUtils.createDate(1, Calendar.JUNE, 2005);
    Date endDate = EsimsUtils.createDate(15, Calendar.MARCH, 2006);
    SchoolEssence schoolEssence = UtilsForTestCases.createValidSchoolEssence();
    School school = schoolEssence.createSchool();

    schoolDAO.save(school);
    AcademicYear academicYear = new AcademicYear("2005-2006", school,
        startDate, endDate, "active");
    academicYearDAO.save(academicYear);
View Full Code Here

TOP

Related Classes of net.sf.esims.model.entity.SchoolEssence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.