Package net.sf.esims.model.entity

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


  }
 
  public void testGets() throws Exception{
    DatabaseOperation.DELETE_ALL.execute(connection, schoolDataSet);
    SchoolEssence essence = this.createValidInstance();
    School school = essence.createSchool();
    this.schoolDAO.save(school);
    List<School> listOfSchools = this.schoolDAO.getAll();
    assertNotNull(listOfSchools);
    Long id = listOfSchools.get(0).getSchoolId();
    assertNotNull(this.schoolDAO.get(id));
View Full Code Here


 
  public void testGetActiveAcademicYear()throws Exception{
    DatabaseOperation.DELETE_ALL.execute(connection, academicYearDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, schoolDataSet);
    SchoolEssence schoolEssence =UtilsForTestCases.createValidSchoolEssence();
    School school =schoolEssence.createSchool();
   
    this.schoolDAO.save(school);
   
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2007);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2008);   
View Full Code Here

  public void testGetAcademicYearByDescription()throws Exception{
    DatabaseOperation.DELETE_ALL.execute(connection, academicYearDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, schoolDataSet);
   
    SchoolEssence schoolEssence =UtilsForTestCases.createValidSchoolEssence();
    School school =schoolEssence.createSchool();
   
    this.schoolDAO.save(school);
   
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2007);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2008);   
View Full Code Here

   
    Date startDate1 = EsimsUtils.createDate(1, Calendar.JUNE, 2005);
    Date endDate1 = EsimsUtils.createDate(15, Calendar.MARCH, 2006);
   
    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);
   
View Full Code Here

   
    Date startDate1 = EsimsUtils.createDate(1, Calendar.JUNE, 2005);
    Date endDate1 = EsimsUtils.createDate(15, Calendar.MARCH, 2006);
   
    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);
View Full Code Here

   
    DatabaseOperation.DELETE_ALL.execute(connection, academicYearDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, schoolDataSet);
   
    SchoolEssence schoolEssence =UtilsForTestCases.createValidSchoolEssence();
    School school =schoolEssence.createSchool();
    this.schoolDAO.save(school);
     
    Date startDate1 = EsimsUtils.createDate(1, Calendar.JUNE, 2004);
    Date endDate1 = EsimsUtils.createDate(15, Calendar.MARCH, 2005);
   
View Full Code Here

TOP

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

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.