1 22 package org.jboss.ejb3.test.regression.unit; 23 24 import org.jboss.ejb3.test.regression.Account; 25 import org.jboss.ejb3.test.regression.AccountDAO; 26 import org.jboss.test.JBossTestCase; 27 import junit.framework.Test; 28 29 36 37 public class EmeddedIdUnitTestCase 38 extends JBossTestCase 39 { 40 org.jboss.logging.Logger log = getLog(); 41 42 static boolean deployed = false; 43 static int test = 0; 44 45 public EmeddedIdUnitTestCase(String name) 46 { 47 48 super(name); 49 50 } 51 52 public void testEmbeddedId() throws Exception 53 { 54 AccountDAO test = (AccountDAO)getInitialContext().lookup("AccountDAOBean/remote"); 55 long id = test.createAccount(); 56 Account account = test.findAccount(id); 57 } 58 59 public static Test suite() throws Exception 60 { 61 return getDeploySetup(EmeddedIdUnitTestCase.class, "regression-test.jar"); 62 } 63 64 } 65 | Popular Tags |