Examples of changeCustomer()


Examples of org.jboss.as.test.integration.jpa.hibernate.EntityTest.changeCustomer()

    @InSequence(5)
    public void testFlush() throws Exception {

        EntityTest test = lookup("EntityTest", EntityTest.class);
        Customer c = test.createCustomer("Thomas");
        test.changeCustomer(c.getId(), "George");

        Customer c2 = test.findCustomerById(c.getId());
        assertEquals("George", c2.getName());

    }
View Full Code Here

Examples of org.jboss.test.jpa.entity.EntityTest.changeCustomer()

  
   public void testFlush() throws Exception
   {
      EntityTest test = (EntityTest) this.getInitialContext().lookup("EntityTestBean/remote");
      Customer c = test.createCustomer("Emmanuel");
    test.changeCustomer(c.getId(), "Bill");
    Customer c2 = test.loadCustomer(c.getId());
    assertEquals("Bill", c2.getName());
   }

   public static Test suite() throws Exception
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.