Package net.sf.esims.model.entity

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


    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();

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

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
View Full Code Here


    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);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
View Full Code Here

    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();

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

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
View Full Code Here

    this.schoolDAO.save(school);
   
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2007);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2008);   
   
    AcademicYear academicYear = new  AcademicYear("2006-2007",school,d1,d2,"active");
    this.academicYearDAO.save(academicYear);
   
    AcademicYear academicYear2 = this.academicYearDAO.getActiveAcademicYear();
    assertNotNull(academicYear2);
    DatabaseOperation.DELETE_ALL.execute(connection, academicYearDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, schoolDataSet);
  }
View Full Code Here

    this.schoolDAO.save(school);
   
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2007);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2008);   
   
    AcademicYear academicYear = new  AcademicYear("2006-2007",school,d1,d2,"active");
    this.academicYearDAO.save(academicYear);
   
   
    List listOfAcademicYears = academicYearDAO.getAcademicYearByDescription("2006-2007");
    assertNotNull(listOfAcademicYears);
View Full Code Here

   
    SchoolEssence schoolEssence =UtilsForTestCases.createValidSchoolEssence();
    School school =schoolEssence.createSchool();
    this.schoolDAO.save(school);
   
    AcademicYear academicYear = new AcademicYear("2005-2006",school,startDate1,endDate1,"active");
    academicYearDAO.save(academicYear);
   
    List <AcademicYear> academicYear2 = academicYearDAO.getAcademicYearByDescription("2005-2006");
    assertEquals(1, academicYear2.size());
   
View Full Code Here

   
    SchoolEssence schoolEssence =UtilsForTestCases.createValidSchoolEssence();
    School school =schoolEssence.createSchool();
    this.schoolDAO.save(school);
     
    AcademicYear academicYear = new AcademicYear("2005-2006",school,startDate1,endDate1,"history");
    AcademicYear academicYear2 = new AcademicYear("2006-2007",school,startDate1,endDate1,"history");
    academicYearDAO.save(academicYear);
    academicYearDAO.save(academicYear2);
   
   
    List <AcademicYear> academicYearList1 = academicYearDAO.getAcademicYearByDescription("2005-2006");
    assertEquals(1, academicYearList1.size());
    Long id = academicYearList1.get(0).getAcademicYearId();
   
    AcademicYear year = academicYearDAO.get(id);
    assertNotNull(year);
    assertEquals(id, year.getAcademicYearId());
   
    academicYearList1 = academicYearDAO.getAll();
    assertEquals(2, academicYearList1.size());
   
    academicYearList1 = academicYearDAO.getAll("description");
View Full Code Here

    this.schoolDAO.save(school);
     
    Date startDate1 = EsimsUtils.createDate(1, Calendar.JUNE, 2004);
    Date endDate1 = EsimsUtils.createDate(15, Calendar.MARCH, 2005);
   
    AcademicYear academicYear = new AcademicYear("2004-2005",school,startDate1,endDate1,"history");
    academicYearDAO.save(academicYear);
    List <AcademicYear> academicYearList1 = academicYearDAO.getAcademicYearByDescription("2004-2005");
    assertEquals(1, academicYearList1.size());
   
   
View Full Code Here

TOP

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

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.