Examples of Employee


Examples of org.ow2.easybeans.examples.maven.jpa2.entity.Employee

        System.out.println("Initializing the database with some employees...");
        facadeBean.init();

        // Search Florent Employee
        System.out.println("Finding data about Florent...");
        Employee florent = facadeBean.findEmployeeWithItsGivenName("Florent");
        printEmployee(florent);

        System.out.println("Listing all employees...");
        for (Employee employee : facadeBean.findEmployees()) {
            printEmployee(employee);
View Full Code Here

Examples of org.plugtree.training.model.Employee

    public void testLuggageNotCheckedInOnTime() throws Exception{
        final StatefulKnowledgeSession ksession = this.createKSession();
        WorkingMemoryEntryPoint meetingsEP = ksession.getWorkingMemoryEntryPoint("meetings");
        WorkingMemoryEntryPoint incomingCallsEP = ksession.getWorkingMemoryEntryPoint("incoming-calls");

        Employee john = new Employee("John", "Terry");
        Employee paul = new Employee("Paul", "Stewart");
        Employee peter = new Employee("Peter", "Corning");
        Employee michael = new Employee("Michael", "Williams");

        //a 2 hours meeting is created
        Meeting meeting = new Meeting("Some important meeting",2*60*60*1000);
        meeting.addParticipant(john);
        meeting.addParticipant(paul);
View Full Code Here

Examples of org.richfaces.demo.iteration.model.Employee

        List<Company> companies = new ArrayList<Company>();
        companies.add(company1);
        companies.add(company2);
        companies.add(company3);

        Employee employee = new Employee(employeeName, employeeTitle);
        employee.setEMail(employeeEmail);
        employee.setCompanies(companies);
        collection.add(employee);
    }
View Full Code Here

Examples of org.springframework.beans.Employee

    // Verifying dependency injection:
    assertNotNull("The pet field should have been autowired.", this.pet);

    // Verifying 'parameterized' support:
    final Employee employee = (Employee) this.applicationContext.getBean(this.employeeBeanName);
    employees.add(employee);
    assertEquals("Verifying the name of the employee configured as bean [" + this.employeeBeanName + "].",
      this.employeeName, employee.getName());
  }
View Full Code Here

Examples of org.springframework.integration.samples.rest.domain.Employee

    try{
      MessageHeaders headers = inMessage.getHeaders();
      String id = (String)headers.get("employeeId");
      boolean isFound;
      if (id.equals("1")){
        employeeList.getEmployee().add(new Employee(1, "John", "Doe"));
        isFound = true;
      }else if (id.equals("2")){
        employeeList.getEmployee().add(new Employee(2, "Jane", "Doe"));
        isFound = true;
      }else if (id.equals("0")){
        employeeList.getEmployee().add(new Employee(1, "John", "Doe"));
        employeeList.getEmployee().add(new Employee(2, "Jane", "Doe"));       
        isFound = true;
      }else{       
        isFound = false;
      }     
      if (isFound){
View Full Code Here

Examples of org.springframework.tests.sample.beans.Employee

    Pet pet = ctx.getBean(Pet.class);
    assertNotNull("pet", pet);
    assertEquals("Dogbert", pet.getName());

    Employee employee = ctx.getBean(Employee.class);
    assertNotNull("employee", employee);
    assertEquals("Dilbert", employee.getName());
    assertEquals("???", employee.getCompany());
  }
View Full Code Here

Examples of org.springmodules.prevayler.test.domain.Employee

    protected void setUp() throws Exception {
        this.resolver = new DefaultIdResolver();
    }

    public void testResolveId() {
        Employee emp = new EmployeeImpl("a1");
        assertNotNull(this.resolver.resolveId(emp));
       
        Manager man = new ManagerImpl("a1");
        assertNotNull(this.resolver.resolveId(man));
    }
View Full Code Here

Examples of org.springmodules.web.test.domain.Employee

        return suite;
    }

    public void testSetCustomEditorsWithDefaultPrefix()
    throws Exception {
        IEmployee emp = new Employee();
        EnhancedSimpleFormController controller = (EnhancedSimpleFormController) this.applicationContext.getBean("testCustomEditorsControllerOne");
        ServletRequestDataBinder binder = new ServletRequestDataBinder(emp);
       
        controller.initBinder(new MockHttpServletRequest(), binder);
       
View Full Code Here

Examples of org.springmodules.xt.examples.domain.Employee

   
    private DynamicBeanIntroductor introductor =  new DynamicBeanIntroductor();
    private MemoryRepository store;
   
    protected Object formBackingObject(HttpServletRequest request) throws Exception {
        return this.introductor.introduceInterfaces(new Employee(), new Class[]{EmployeeView.class}, new Class[]{IEmployee.class});
    }
View Full Code Here

Examples of org.springmodules.xt.test.domain.Employee

        assertXpathEvaluatesTo("data1", "/tr/td[position() = 1]/span", rendering);
        assertXpathEvaluatesTo("data2", "/tr/td[position() = 2]/span", rendering);
    }
   
    public void testTableRowConstructor2() throws Exception {
        Employee emp = new Employee();
        emp.setMatriculationCode("123");
        emp.setFirstname("Sergio");
        emp.setSurname("Bossa");
       
        TableRow tableRow = new TableRow(emp, new String[]{"matriculationCode", "firstname", "surname"}, null);
       
        String rendering = tableRow.render();
        System.out.println(rendering);
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.