Package net.sf.esims.model.entity

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


    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.getByFormNumber("345"));
    assertEquals(1, this.studentService.getByFormNumber("345").size());
   
View Full Code Here


    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.generateAdmissionNumber());
   
    this.studentService.delete(student);
View Full Code Here

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
   
    List<Student> listOfStudents = this.studentDAO.getAll();
   
    assertNotNull(listOfStudents);
View Full Code Here

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
   
    List<Student> listOfStudents = this.studentDAO.getAll();
   
    assertNotNull(listOfStudents);
View Full Code Here

   
    Division division = new Division("A", standard,"paplubhai",new Integer(50),new Integer(20),new Date());
   
    this.divisionDAO.save(division);
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    student.setDivision(division);
    this.studentDAO.save(student);
   
    List<Student> listOfStudents = this.studentDAO.getAll();
   
    assertNotNull(listOfStudents);
    assertEquals(1, listOfStudents.size());
   
   
    listOfStudents = this.studentDAO.getByAdmissionNumber("123123");
    assertNotNull(listOfStudents);
    assertEquals(1, listOfStudents.size());
   
    listOfStudents = this.studentDAO.getByFormNumber("345345");
    assertNotNull(listOfStudents);
    assertEquals(1, listOfStudents.size());
   
    listOfStudents = this.studentDAO.getByStandard(standard);
    assertNotNull(listOfStudents);
    assertEquals(1, listOfStudents.size());
   
   
    listOfStudents = this.studentDAO.getByStandardAndDivision(standard, division);
    assertNotNull(listOfStudents);
    assertEquals(1, listOfStudents.size());
   
    Student student2 = this.studentDAO.get(student.getStudentId());
    assertNotNull(student2);
   
    DatabaseOperation.DELETE_ALL.execute(connection, studentDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, divisionDataSet);
    DatabaseOperation.DELETE_ALL.execute(connection, standardDataSet);
View Full Code Here

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
   
    assertEquals(1,this.studentDAO.getCountOfAdmissions().intValue());
   
       
View Full Code Here

TOP

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

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.