Package net.sf.esims.model.entity

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


  public void testSaveAcademicYear() throws Exception {
    Date startDate = EsimsUtils.createDate(1, Calendar.JUNE, 2007);
    Date endDate = EsimsUtils.createDate(31, Calendar.MAY, 2008);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear1 = new AcademicYear("2006-2007", school,
        startDate, endDate, "active");
    this.academicYearService.saveAcademicYear(academicYear1);
    // //cleanin up
View Full Code Here


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

  public void testGets() {
    Date startDate = EsimsUtils.createDate(1, Calendar.JUNE, 2007);
    Date endDate = EsimsUtils.createDate(31, Calendar.MAY, 2008);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear1 = new AcademicYear("2007-2008", school,
        startDate, endDate, "active");
    this.academicYearService.saveAcademicYear(academicYear1);
    List<AcademicYear> list = this.academicYearService.getAll();
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();
    school.setSchoolName("testSchool");
    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");
    this.academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("6th standard", academicYear);
View Full Code Here

  public void testGets() {
    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");
    this.academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("6th standard", academicYear);
View Full Code Here

  public void testSaveAndDelete(){
    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 testGets() {
    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 static AcademicYear createValidAcademicYear(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2007);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2008);
    SchoolEssence essence = createValidSchoolEssence();
    School school= essence.createSchool();
    school.setSchoolId(new Long(33));
    return new AcademicYear("2007-2008",school,d1,d2,"active");
  }
View Full Code Here

  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

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.