Package org.mypj.db.thing

Examples of org.mypj.db.thing.Person


    assertEquals(3, persons.size());
  }

  @Test
  public void testGetByName() {
    Person p1=new Person("haku");
    impl.create(p1);
    Person p2= impl.getByName("haku");
    assertEquals("haku", p2.getName());
  }
View Full Code Here


    assertEquals("haku", p2.getName());
  }

  @Test
  public void testIsExist() {
    Person p1=new Person("haku");
    impl.create(p1);
    Person p2= impl.getByName("haku");
    assertTrue(impl.isExist(p2));
  }
View Full Code Here

    assertTrue(impl.isExist(p2));
  }

  @Test
  public void testUpdate() {
    Person p1=new Person("haku");
    impl.create(p1);
    Person p2= impl.getByName("haku");
    p2.setName("pony");
    impl.update(p2);
    Person p3= impl.getByName("pony");
    assertTrue(impl.isExist(p3));
    assertEquals(new Long(1),p3.getId());
  }
View Full Code Here

TOP

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

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.