Examples of PersonService


Examples of org.apache.shindig.social.opensocial.spi.PersonService

        injector = Guice.createInjector(module);
    }

    @Test
    public void bindsScopedBean() {
        PersonService personService = injector.getInstance(PersonService.class);
        assertThat(personService, is(notNullValue()));
        assertThat(personService, is(instanceOf(DefaultPersonService.class)));
    }
View Full Code Here

Examples of org.openmrs.api.PersonService

      personList.add(PersonListItem.createBestMatch(p));
      personId.add(p.getId());
    }
   
    // now we check for persons (that won't be brought back by the patient search)
    PersonService ps = Context.getPersonService();
    for (Person p : ps.getPeople(searchPhrase, null)) {
     
      if(!personId.contains(p.getId()))
      {
        personList.add(PersonListItem.createBestMatch(p));
      }
View Full Code Here

Examples of org.springframework.integration.samples.jdbc.service.PersonService

 
  @Test
  public void insertPersonRecord() { 
    ApplicationContext context
        = new ClassPathXmlApplicationContext("/META-INF/spring/integration/spring-integration-context.xml");
    PersonService service = context.getBean(PersonService.class);
    logger.info("Creating person Instance");
    Person person = new Person();
    Calendar dateOfBirth = Calendar.getInstance();
    dateOfBirth.set(1980, 0, 1);
    person.setDateOfBirth(dateOfBirth.getTime());
    person.setName("Name Of The Person");
    person.setGender(Gender.MALE);
    person = service.createPerson(person);
    Assert.assertNotNull("Expected a non null instance of Person, got null", person);
    logger.info("\n\tGenerated person with id: " + person.getPersonId() + ", with name: " + person.getName());
  }
View Full Code Here

Examples of org.springframework.integration.samples.jdbc.service.PersonService

    context.registerShutdownHook();

    final Scanner scanner = new Scanner(System.in);


    final PersonService personService = context.getBean(PersonService.class);

    LOGGER.info("\n========================================================="
          + "\n                                                         "
          + "\n    Please press 'q + Enter' to quit the application.    "
          + "\n                                                         "
View Full Code Here

Examples of org.springframework.integration.samples.jpa.service.PersonService

    context.load("classpath:META-INF/spring/integration/*-context.xml");
    context.registerShutdownHook();
    context.refresh();

    final PersonService personService = context.getBean(PersonService.class);

    System.out.println("Please enter a choice and press <enter>: ");
    System.out.println("\t1. List all people");
    System.out.println("\t2. Create a new person");
    System.out.println("\tq. Quit the application");
View Full Code Here

Examples of org.springframework.integration.samples.jpa.service.PersonService

  public void insertPersonRecord() {

    final ApplicationContext context = new ClassPathXmlApplicationContext(
      "classpath:/META-INF/spring/integration/spring-integration-context.xml");

    final PersonService service = context.getBean(PersonService.class);

    LOGGER.info("Creating person Instance");

    final Person person = new Person();
    Calendar createdDateTime = Calendar.getInstance();
    createdDateTime.set(1980, 0, 1);
    person.setCreatedDateTime(createdDateTime.getTime());
    person.setName("Name Of The Person");

    final Person persistedPerson = service.createPerson(person);
    Assert.assertNotNull("Expected a non null instance of Person, got null", persistedPerson);
    LOGGER.info("\n\tGenerated person with id: " + persistedPerson.getId() + ", with name: " + persistedPerson.getName());
  }
View Full Code Here

Examples of test.component3.PersonService

  @Test
  public void testXmlInject() {
    Person person = xmlApplicationContext.getBean("person");
    Assert.assertThat(person.getName(), is("Jack"));
    PersonService personService = xmlApplicationContext
        .getBean("personService");
    List<Object> l = personService.getTestList();
    Assert.assertThat(l.size(), greaterThan(0));
    int i = 0;
    for (Object p : l) {
      if (p instanceof Person) {
        person = (Person) p;
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.