Package org.jboss.embedded.test.ejb

Examples of org.jboss.embedded.test.ejb.Customer


      group.process();

      outputJNDI();
      InitialContext ctx = new InitialContext();
      DAO dao = (DAO)ctx.lookup("DAOBean/local");
      Customer cust = dao.createCustomer("Bill");
      cust = dao.findCustomer("Bill");
      assert cust != null;
      assert cust.getName().equals("Bill");

      group.undeploy();


   }
View Full Code Here


       group.process();

       outputJNDI();
       InitialContext ctx = new InitialContext();
       DAO dao = (DAO)ctx.lookup("DAOBean/local");
       Customer cust = dao.createCustomer("Bill");
       cust = dao.findCustomer("Bill");
       assert cust != null;
       assert cust.getName().equals("Bill");

       group.undeploy();


    }
View Full Code Here

      group.process();

      outputJNDI();
      InitialContext ctx = new InitialContext();
      DAO dao = (DAO)ctx.lookup("DAOBean/local");
      Customer cust = dao.createCustomer("Bill");
      cust = dao.findCustomer("Bill");
      assert cust != null;
      assert cust.getName().equals("Bill");

      group.undeploy();


   }
View Full Code Here

       group.process();

       outputJNDI();
       InitialContext ctx = new InitialContext();
       DAO dao = (DAO)ctx.lookup("DAOBean/local");
       Customer cust = dao.createCustomer("Bill");
       cust = dao.findCustomer("Bill");
       assert cust != null;
       assert cust.getName().equals("Bill");

       group.undeploy();


    }
View Full Code Here

   public void testSimpleEjb() throws Exception
   {
      InitialContext ctx = getInitialContext();
      DAO dao = (DAO)ctx.lookup("DAOBean/local");
      Customer cust = dao.createCustomer("Bill");
      cust = dao.findCustomer("Bill");
      assertNotNull(cust);
      assertEquals(cust.getName(), "Bill");
   }
View Full Code Here

TOP

Related Classes of org.jboss.embedded.test.ejb.Customer

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.