Examples of Person


Examples of com.google.gwt.gadgets.client.osapi.people.Person

        assertEquals(12, collection.getTotalResults());
        JsArray<Person> list = collection.getList();

        int i;
        for (i = 0; i < list.length(); i++) {
          Person p = list.get(i);
          assertEquals(Integer.toString(i), p.getId());
        }
        assertEquals(6, i);

        i = 0;
        for (Person p : collection.iterable()) {
          assertEquals(Integer.toString(i++), p.getId());
        }
        assertEquals(6, i);
        finishTest();
      }
    });
View Full Code Here

Examples of com.google.gwt.sample.dynatable.client.Person

    System.out.println(serializedResponse);
  }

  private void generateRandomPeople() {
    for (int i = 0; i < MAX_PEOPLE; ++i) {
      Person person = generateRandomPerson();
      people.add(person);
    }
  }
View Full Code Here

Examples of com.google.gwt.sample.dynatablerf.domain.Person

  private static final ThreadLocal<PersonSource> PERSON_SOURCE = new ThreadLocal<PersonSource>();
  static final ThreadLocal<ScheduleSource> SCHEDULE_SOURCE = new ThreadLocal<ScheduleSource>();

  public static Person createPerson() {
    checkPersonSource();
    Person person = PersonFuzzer.generatePerson();
    PERSON_SOURCE.get().persist(person);
    return person;
  }
View Full Code Here

Examples of com.google.sitebricks.example.RestfulWebServiceWithGenerics.Person

*/
@Test(suiteName = AcceptanceTest.SUITE)
public class RestfulWebServiceWithGenericsAcceptanceTest {

  public void whatWasPostedIsReturnedAsResponse() {
    List<Person> personList = Lists.newArrayList(new Person("John Smith"));

    WebResponse response = createInjector()
            .getInstance(Web.class)
            .clientOf(AcceptanceTest.baseUrl() + "/serviceWithGenerics")
            .transports(new TypeLiteral<List<Person>>() { })
View Full Code Here

Examples of com.google.sitebricks.example.model.Person

@Test(suiteName = AcceptanceTest.SUITE)
public class RestfulWebServiceValidatingDaoAcceptanceTest {

    public void shouldValidateGet() {

        Person person = new Person();
        person.setFirstName("firstName");
        person.setLastName("lastName");
        person.setAge(20);

        WebResponse response = createInjector().getInstance(Web.class)
                .clientOf(AcceptanceTest.baseUrl() + "/restvalidatingdao")
                .transports(Person.class).over(Json.class).get();

        assert response.toString().contains(person.getLastName());

    }
View Full Code Here

Examples of com.googlecode.gwt.test.autobean.MyAutoBeanFactory.Person

   private final MyAutoBeanFactory myFactory = GWT.create(MyAutoBeanFactory.class);

   @Test
   public void createComplex() {
      // Act
      Person person = myFactory.person().as();
      Address address = myFactory.create(Address.class).as();
      person.setAddress(address);

      // Assert
      assertThat(person.getAddress()).isEqualTo(address);
      assertThat(person.getName()).isNull();
   }
View Full Code Here

Examples of com.hmkcode.vo.Person

    }
   
    private static Person[] getPersons(){
      Person[] persons = new Person[5];
     
      persons[0] = new Person("Brit", 29);
      persons[1] = new Person("John", 32);
      persons[2] = new Person("Jack", 27);
      persons[3] = new Person("Jenifer", 24);
      persons[4] = new Person("Brit", 37);

      return persons;
    }
View Full Code Here

Examples of com.ibm.sbt.services.client.connections.common.Person

        attribute(TYPE, APPLICATION_ATOM_XML),
        attribute(SOURCE, entity.getActivityUuid())) : null;
  }
   
  protected Element assignedTo() {
    Person assignedTo = entity.getAssignedTo();
    return (assignedTo != null) ? element(Namespace.SNX.getUrl(), ASSIGNEDTO,
        attribute(NAME, assignedTo.getName()),
        attribute(USERID, assignedTo.getUserid())) : null;
  }
View Full Code Here

Examples of com.impetus.kundera.query.Person

    @Test
    public void testIsLoadedWithoutReference()
    {
        PersistenceUnitUtil utils = emf.getPersistenceUnitUtil();
       
        Person p = new Person();
        p.setAge(32);
        p.setPersonId("1");
     
        Assert.assertNotNull(utils);
        Assert.assertTrue(utils.isLoaded(p, "personId"));
        Assert.assertFalse(utils.isLoaded(null, "personName"));
    }
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.domain.Person

*/
public class ManualListMapper implements Mapper {

    public Object fromEntity(final Object entity) {

        final Person person = (Person) entity;
        final PersonWithHistoryDTO dto = new PersonWithHistoryDTO();
        if (person.getPreviousAddresses() != null) {
            dto.setPreviousAddresses(new ArrayList<AddressDTO>());
            for (final Address address : person.getPreviousAddresses()) {
                dto.getPreviousAddresses().add(fromAddress(address));
            }
        }
        if (person.getName() != null) {
            dto.setFirstName(person.getName().getFirstname());
            dto.setLastName(person.getName().getSurname());
        }
        if (person.getCurrentAddress() != null) {
            final Address address = person.getCurrentAddress();
            final AddressDTO addressDTO = fromAddress(address);
            dto.setCurrentAddress(addressDTO);
        }
        dto.setId(person.getId());
        return dto;
    }
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.