112113114115116117118119120121122
Customer cust = dao.createCustomer("Bill"); cust = dao.findCustomer("Bill"); assert cust != null; assert cust.getName().equals("Bill"); group.undeploy(); } public void testSimpleEjb2() throws Exception
131132133134135136137138139140
Customer cust = dao.createCustomer("Bill"); cust = dao.findCustomer("Bill"); assert cust != null; assert cust.getName().equals("Bill"); group.undeploy(); } }
134135136137138139140141142143144
153154155156157158159160161162163
Customer cust = dao.createCustomer("Bill"); cust = dao.findCustomer("Bill"); assert cust != null; assert cust.getName().equals("Bill"); group.undeploy(); } public void testSecurity() throws Exception
196197198199200201202203204205
{ exceptionThrown = true; } assertTrue("Security exception not thrown for invalid role", exceptionThrown); group.undeploy(); } }