Package net.sf.esims.model.entity

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


  private SchoolService schoolService;

  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

  private AcademicYearService academicYearService;

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

   * @return
   */
 
  @SuppressWarnings("unused")
  public static SchoolEssence createValidSchoolEssence(){
    SchoolEssence essence = new SchoolEssence();
    essence.setAddressLine1("ADD1");
    essence.setAddressLine2("ADD2");
    essence.setAddressLine3("ADD3");
    essence.setSchoolCode("ABC");
    essence.setBoardOfEducation("CBSE");
    essence.setCountry("India");
    essence.setDistrict("Bengalooru");
    essence.setEmail("fictious_man@fictiousschool.com");
    essence.setFax("8023423450");
    essence.setIsActive(Boolean.TRUE);
    essence.setManagement("Test mgmt");
    essence.setPhone1("8023423450");
    essence.setPhone1("8023423450");
    essence.setPhone1("8023423450");
    essence.setPincode("654321");
    essence.setPrincipalFirstName("Muttal");
    essence.setPrincipalMiddleName("Kashapp");
    essence.setPrincipalLastName("Raman");
    essence.setSchoolName("Fictious school");
    essence.setState("Karanataka");
    essence.setVicePrincipalFirstName("Dodda");
    essence.setVicePrincipalMiddleName("Belliappa");
    essence.setVicePrincipalLastName("Puttanna");
    return essence;
  }
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.