1 22 package org.jboss.ejb3.test.singletableinheritance.unit; 23 24 import org.jboss.ejb3.test.singletableinheritance.EntityTest; 25 import org.jboss.test.JBossTestCase; 26 import junit.framework.Test; 27 28 34 35 public class EntityUnitTestCase 36 extends JBossTestCase 37 { 38 org.jboss.logging.Logger log = getLog(); 39 40 static boolean deployed = false; 41 static int test = 0; 42 43 public EntityUnitTestCase(String name) 44 { 45 46 super(name); 47 48 } 49 50 public void test1() throws Exception 51 { 52 EntityTest test = (EntityTest) this.getInitialContext().lookup("EntityTestBean/remote"); 53 long[] ids = test.createBeans(); 54 test.test1(); 55 test.test2(); 56 test.test3(); 57 test.test4(ids); 58 } 59 60 public static Test suite() throws Exception 61 { 62 return getDeploySetup(EntityUnitTestCase.class, "single-table-inheritance-test.jar"); 63 } 64 65 } 66 | Popular Tags |