Examples of Student


Examples of br.com.six2six.fixturefactory.model.Student

    FixtureFactoryLoader.loadTemplates("br.com.six2six.template");
  }

  @Test
  public void fixtureAnyStudent() {
    Student student = Fixture.from(Student.class).gimme("valid");
    assertNotNull("Student should not be null", student);
    assertNotNull("Students id should not be null", student.getId());
    assertTrue("Tests taken should be greather than 0", student.getTestsTaken() > 0);
    assertTrue("Best score should be greather than 0", student.getTestsTaken() > 0);
  }
View Full Code Here

Examples of br.com.visualmidia.business.Student

        resultTable.removeAll();
        SortComparator comparator = new SortComparator();
        Collections.sort(list, comparator);

        for (Person person : list) {
            Student student = (Student) person.getPersonType("student");
            String id = person.getId();
            String name = person.getName();
            String observation = student.getAttendanceObservation();

            TableItem item = new TableItem(resultTable, SWT.NULL);
            item.setText(0, id);
            item.setText(1, name);
            item.setText(2, observation);
View Full Code Here

Examples of ch.bfh.swos.gandalf.model.Student

  @Inject
  private StudentDao studentDao;

  @Test
  public void test() {
    Student student = studentDao.create();
    student.setName("Müller");
    student.setPrename("Hugo");
    student.setLogin("hm");
    student.setPassword("123456");

    List<StudentModule> listSM = new ArrayList<StudentModule>();
    listSM.add(new StudentModule());
    listSM.add(new StudentModule());
    student.setStudentModules(listSM);

    Student managedStudent = studentDao.update(student);
    Student foundStudent = studentDao.read(managedStudent.getId());
    Assert.assertTrue(student.getPrename()
        .equals(foundStudent.getPrename()));
    Assert.assertTrue(student.getPassword().equals(
        foundStudent.getPassword()));
    Assert.assertTrue(student.getLogin().equals(foundStudent.getLogin()));
    foundStudent.getLogin();
    foundStudent.getPrename();
    foundStudent.getPassword();
    studentDao.delete(foundStudent);
  }
View Full Code Here

Examples of co.nubetech.hiho.testdata.Student

  }
 
 
  @Test
  public void testDedupByCustomObjectKeyWithSequenceFileInputFormat() throws Exception {   
    Student student1 = setStudent(new Text("Sam"),new Text("US"),new IntWritable(1),
        new LongWritable(9999999998l),new DoubleWritable(99.12));       
    Student student2 = setStudent(new Text("John"),new Text("AUS"),new IntWritable(2),
        new LongWritable(9999999999l),new DoubleWritable(90.12));       
    Student student3 = setStudent(new Text("Mary"),new Text("UK"),new IntWritable(3),
        new LongWritable(9999999988l),new DoubleWritable(69.12));   
    Student student4 = setStudent(new Text("Kelvin"),new Text("UK"),new IntWritable(4),
        new LongWritable(9999998888l),new DoubleWritable(59.12));
 
    HashMap<Student, Text> inputData1 = new HashMap<Student, Text>();
    inputData1.put(student1, new Text("Macon Kent,6269 Aenean St.,1-247-399-1051,08253"));
    inputData1.put(student2, new Text("Dale Zamora,521-7792 Mauris Rd.,1-214-625-6970,90510"));
View Full Code Here

Examples of co.nubetech.hiho.testdata.Student

 
 
 
  public Student setStudent(Text name, Text address, IntWritable id,
      LongWritable mobNumber, DoubleWritable per){
    Student student = new Student();
    student.setName(name);
    student.setAddress(address);
    student.setId(id);
    student.setMobileNumber(mobNumber);
    student.setPercentage(per);
    return student;
  }
View Full Code Here

Examples of co.nubetech.hiho.testdata.Student

    mergeJob.checkMandatoryConfs();
  }
 
  public Student setStudent(Text name, Text address, IntWritable id,
      LongWritable mobNumber, DoubleWritable per){
    Student student = new Student();
    student.setName(name);
    student.setAddress(address);
    student.setId(id);
    student.setMobileNumber(mobNumber);
    student.setPercentage(per);
    return student;
  }
View Full Code Here

Examples of co.nubetech.hiho.testdata.Student

    return student;
  }
 
  @Test
  public void testMergeByCustomObjectKeyWithSequenceFileInputFormat() throws Exception {   
    Student student1 = setStudent(new Text("Sam"),new Text("US"),new IntWritable(1),
        new LongWritable(9999999998l),new DoubleWritable(99.12));       
    Student student2 = setStudent(new Text("John"),new Text("AUS"),new IntWritable(2),
        new LongWritable(9999999999l),new DoubleWritable(90.12));       
    Student student3 = setStudent(new Text("Mary"),new Text("UK"),new IntWritable(3),
        new LongWritable(9999999988l),new DoubleWritable(69.12));   
    Student student4 = setStudent(new Text("Kelvin"),new Text("UK"),new IntWritable(4),
        new LongWritable(9999998888l),new DoubleWritable(59.12));
 
    HashMap<Student, Text> inputData1 = new HashMap<Student, Text>();
    inputData1.put(student1, new Text("Macon Kent,6269 Aenean St.,1-247-399-1051,08253"));
    inputData1.put(student2, new Text("Dale Zamora,521-7792 Mauris Rd.,1-214-625-6970,90510"));
View Full Code Here

Examples of com.darkhonor.rage.model.Student

                                                    //stu.setSection(res);
                                                }
                                                // TODO: RAGE-34 - Migrate to StudentDAO
                                                query = em.createQuery("select p FROM Person p WHERE p.webID = :webid");
                                                query.setParameter("webid", stu.getWebID());
                                                Student stuRes;
                                                try
                                                {
                                                    stuRes = (Student)query.getSingleResult();
                                                }
                                                catch (NoResultException ex)
View Full Code Here

Examples of com.fengjing.framework.jaxb.model.Student

public class JaxbMarshaller {
 
  @Test
  public void student2xml() throws JAXBException{
    JAXBContext context=JAXBContext.newInstance(Student.class);
    Student student=new Student("admin", 18, "��������", new ClassRoom("classroom", "�������"));
    Marshaller marshaller = context.createMarshaller();
    //�O�ò�ݔ��<?xml version="1.0" encoding="UTF-8" standalone="yes"?>��Ϣ
    //marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
    marshaller.marshal(student, System.out);
  }
View Full Code Here

Examples of com.finiac.model.Student

    return new ModelAndView("redirect:viewPrevBill.htm?billNo="+billId);
  }
  public ModelAndView autoComStudent(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    long admissionNo= Long.parseLong(request.getParameter("adNo"));
    Student student = new Student();
    student= studentDAO.selectByAdmissionNo(admissionNo);
    return new ModelAndView("autoCompleteStudent", "student", student);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.