Package org.ytreza.data.model.people

Examples of org.ytreza.data.model.people.People


  }
 
  @Test
  public void testSetPeople(){
    Address<People> address = tableAddress.createItem();
    People people = tablePeople.createItem();
    people.setFirstName("doe");
    address.setOwner(people);
    assertTrue("address is not updated", address.isUpdated());
    if (! address.getOwner().getFirstName().equals(people.getFirstName())){
      fail("people is not the same");
    }
  }
View Full Code Here


  }
 
  @Test
  public void testSaveAddress() throws ItemException, UnableToSaveException {
    Address<People> address = tableAddress.createItem();
    People people = tablePeople.createItem();
    people.setFirstName("doe");
    people.save();
    address.setOwner(people);
    address.save();
    assertFalse(address.isNew());
  }
View Full Code Here

  }
 
  @Test
  public void testGetAddress() throws ItemException, ItemException, UnregisteredTableError, UnableToInitializeException, UnableToSaveException {
    Address<People> address = tableAddress.createItem();
    People people = tablePeople.createItem();
    people.setFirstName("doe");
    address.setOwner(people);
    people.save();
    address.save();
    Integer IdAddress = address.getId();
   
    tableAddress.getItem(IdAddress);
  }
View Full Code Here

TOP

Related Classes of org.ytreza.data.model.people.People

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.