Package org.mypj.db.thing

Examples of org.mypj.db.thing.Contact


    PersonManagerImpl impl = new PersonManagerImpl();
    Person p1 = new Person(info.getEditName());
    p1.setBirthday(info.getEditBirthday());
    p1.setSex(info.getEditSex());
    p1.setPs(info.getEditPs());
    Contact c1 = new Contact(info.getEditContact());
    p1.getContacts().add(c1);
    if (!impl.isExist(p1)) {
      impl.create(p1);
      info.setViewName(info.getEditName());
      info.setViewContact(info.getEditContact());
View Full Code Here


  }

  @Test
  public void testAddPersonContact() {
    Person p1=new Person("haku");
    Contact c1=new Contact("08056828543");
    p1.getContacts().add(c1);
    impl.create(p1);
    Person p2= impl.getByName("haku");
    assertNotNull(p2);
    assertNotNull(p2.getContacts());
View Full Code Here

TOP

Related Classes of org.mypj.db.thing.Contact

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.